isType()

Determines if a value is of a specific type or one of a list of specific types.

This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 61 times.

Parameters

{*} value
Value to determine if it matches any of the type names given.
{…string} typeName
Possible type names to match value against.

Returns

{boolean}
A boolean indicating if the type of value matched against any of the typeName arguments passed.

Required Function

This function directly requires the following function which is included automatically:

  • typeOf()
    Either gets the type of a value or adds a constructor registering its custom type name.