Eric Foster 35b96bc934 initial commit | 6 gadus atpakaļ | |
---|---|---|
.. | ||
LICENSE | 6 gadus atpakaļ | |
README.md | 6 gadus atpakaļ | |
index.js | 6 gadus atpakaļ | |
package.json | 6 gadus atpakaļ |
Returns
true
if the value is a primitive.
npm i is-primitive --save
Install dev dependencies.
npm i -d && npm test
var isPrimitive = require('is-primitive');
isPrimitive('abc');
//=> true
isPrimitive(42);
//=> true
isPrimitive(false);
//=> true
isPrimitive(true);
//=> true
isPrimitive({});
//=> false
isPrimitive([]);
//=> false
isPrimitive(function(){});
//=> false
Jon Schlinkert
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 16, 2015.