Skip to content

Adds `is.[not].primitive` To `is`

Compare
Choose a tag to compare
@losandes losandes released this 11 Sep 17:21
afb6076

Adds is.primitive and is.not.primitive to is

The following results from is.getType will return true for
is.primitive. Everything else returns false.

  • 'boolean',
  • 'null',
  • 'undefined',
  • 'number',
  • 'bigint',
  • 'string',
  • 'symbol'