typeOf()
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.24.3. This function has been downloaded 94 times.opt_typeNameToAdd
is passed this must be the constructor for the corresponding type name.value
will 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_typeNameToAdd
was omitted a string representation of value
's type usually capitalized unless "null"
or "undefined"
is returned. If opt_typeNameToAdd
is given, the constructor passed as value
will be searched and a boolean indicating whether or not it needed to be added will be returned.This function directly requires the following functions which are included automatically:
isPrimitive()
isPrototype()
kindsOf()
This function is directly required by the following functions:
around()
chain()
dice()
dom()
expandRegExp()
[:alnum:]
, [:alpha:]
, [:digit:]
, [:punct:]
, [:space:]
, or [:xdigit:]
and allows for addition of other character classes.
findByProp()
findNth()
target
in subject
.
flatten()
getCookie()
indexOf()
Array.prototype.indexOf()
, this function works for finding NaN
and differentiates between -0
and 0
.
isArguments()
Arguments
as specified by typeOf()
.
isError()
Error
object.
isFullOf()
isType()
isTypeFor()
isType()
function.
kindsOf()
parseQS()
replace()
uneval()