The value of the property '0' is not a Function object