Skip to main content
Version: Next

is.instanceOf

is.instanceOf(target: unknown, classRef: Function)โ€‹

Specificationโ€‹

  • Target and classRef arguments: required.
  • Checks if the given "target" type instance of classRef.

Informationโ€‹

  • Unit tests: โœ…

// And all other known types will return false

// Reversal boolean result

// And all other known types will return true