trueif the value is a primitive.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.
Install with npm:
$ npm install --save is-primitive
The Mozilla docs for "Primitive values" defines specifies six data types that are primitives:
Symbol(new in ECMAScript 6)
var isPrimitive = ;
All of the following return
Everything else returns
console;console;console;console;// et cetera...//=> false
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
You might also be interested in these projects:
- is-number: Returns true if the value is a number. comprehensive tests. | homepage
- is-plain-object: Returns true if an object was created by the
Objectconstructor. | homepage
- kind-of: Get the native type of a value. | homepage
This file was generated by verb-generate-readme, v0.6.0, on November 23, 2017.