JSPM

is-primitive

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4181744
  • Score
    100M100P100Q201134F
  • License

Returns `true` if the value is a primitive.

Package Exports

  • is-primitive

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) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-primitive NPM version Build Status

Returns true if the value is a primitive.

Install with npm

npm i is-primitive --save

Running tests

Install dev dependencies.

npm i -d && npm test

Usage

var isPrimitive = require('is-primitive');
isPrimitive('abc');
//=> true

isPrimitive(42);
//=> true

isPrimitive(false);
//=> true

isPrimitive(true);
//=> true

isPrimitive({});
//=> false

isPrimitive([]);
//=> false

isPrimitive(function(){});
//=> false

Author

Jon Schlinkert

License

Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 16, 2015.