Sha256: 7318c63db0cb9388e7d34e76eaf54eed78d80235f536f4e85e26d8898b412cd4
Contents?: true
Size: 975 Bytes
Versions: 10
Compression:
Stored size: 975 Bytes
Contents
# is-primitive [![NPM version](https://badge.fury.io/js/is-primitive.svg)](http://badge.fury.io/js/is-primitive) > Returns `true` if the value is a primitive. This is the `.isPrimitive()` method from [mout](https://github.com/mout/mout). ## Install ### Install with [npm](npmjs.org): ```bash npm i is-primitive --save-dev ``` ## Run tests ```bash npm test ``` ## Usage ```js 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** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright (c) 2015 Jon Schlinkert Released under the MIT license *** _This file was generated by [verb](https://github.com/assemble/verb) on February 12, 2015._
Version data entries
10 entries across 10 versions & 1 rubygems