is-primitive
A primitive is data that is not an object and has no methods.
is-primitive
is a JavaScript method that allows determine if a datatype is primitive
or not.
JavaScript has 6 primitive datatypes:
- String
- Number
- Null
- Undefined
- Boolean
- Symbol
More information about JavaScript Primitive Types
How to install
npm install is-primitive-type
How to test
npm run test
Usage
var isPrimitive = ; ;// returns true ;// returns false ;// returns false