forgeplus-react/node_modules/is-primitive
zhiyuanliu cb17bad1d4 activity visualize step one 2023-07-29 06:19:10 -07:00
..
LICENSE activity visualize step one 2023-07-29 06:19:10 -07:00
README.md activity visualize step one 2023-07-29 06:19:10 -07:00
index.js activity visualize step one 2023-07-29 06:19:10 -07:00
package.json activity visualize step one 2023-07-29 06:19:10 -07:00

README.md

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.