The doc says:
The Object can be a regular Object, an Array, a Function, a RegExp, or any of the primitive types or constructor function created with new.
The "or any of the primitive types" part suggests that plain string, number, boolean, etc. should also work, but this doesn't seem to be the case to me. Can you clarify?
cc @jiangzidong
The doc says:
The "or any of the primitive types" part suggests that plain string, number, boolean, etc. should also work, but this doesn't seem to be the case to me. Can you clarify?
cc @jiangzidong