isType

  • function
 

Checks to see if the provided item is a valid type match

Lang.isType(expr, object)

Checks to see if the provided item is a valid type match

Parameters

  1. expr

    {String} a String version of the 'type' you're looking to check for a match

  2. object

    {String|Array|Function|Object} the item you're checking against

Returns

{Boolean}

will return true if thing is a valid match. Otherwise it will return false.