Either gets the type of a value or adds a constructor registering its custom type name.This function is valid in v2.8.0 to v2.14.3. This function has been downloaded 4 times.
opt_typeNameToAddis passed this must be the constructor for the corresponding type name.
valuewill be looked for within an array of all known constructors and if not found a new entry will be added along with this given type name.
opt_typeNameToAddwas omitted a string representation of
value's type usually capitalized unless
"undefined"is returned. If
opt_typeNameToAddis given, the constructor passed as
valuewill be searched and a boolean indicating whether or not it needed to be added will be returned.
This function requires the following functions which are included automatically: