Skip to main content
Version: 1.0.2

is.primitive

is.primitive(target: unknown)โ€‹

Specificationโ€‹

  • Target argument: required.
  • Checks if the given "target" type is primitive.

Informationโ€‹

  • Unit tests: โœ…

// And all other known types will return false

// Reversal boolean result

// And all other known types will return true