Title

Global

Members

# isValidType

Validate types and existence of various input values.
Note: Uses Object.prototype.toString.call(value) under the hood


Returns true if:

  • type of value is equal to provided type

Returns false if:

  • type arg is missing
  • type or value arg is falsey or missing

View Source isValidType.ts, line 1