JSPM

is-primitive-x

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2313
  • Score
    100M100P100Q118089F
  • License MIT

Returns true if the value is a primitive.

Package Exports

  • is-primitive-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-primitive-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-primitive-x

Returns true if the value is a primitive.

module.exports*

Returns true if the value is a primitive.

Kind: Exported member
Returns: * - The value to test.

Param Type Description
[val] * The value to test.

Example

import isPrimitive from 'is-primitive-x';

console.log(isPrimitive()); // true
console.log(isPrimitive(42)); // true
console.log(isPrimitive('abc')); // true
console.log(isPrimitive(Symbol())); // true

console.log(isPrimitive({})); // false
console.log(isPrimitive([])); // false
console.log(isPrimitive(function() {})); // false
console.log(isPrimitive(new Date())); // false