Initial commit
[yaffs-website] / node_modules / is-primitive / README.md
1 # is-primitive [![NPM version](https://badge.fury.io/js/is-primitive.svg)](http://badge.fury.io/js/is-primitive)  [![Build Status](https://travis-ci.org/jonschlinkert/is-primitive.svg)](https://travis-ci.org/jonschlinkert/is-primitive) 
2
3 > Returns `true` if the value is a primitive. 
4
5 ## Install with [npm](npmjs.org)
6
7 ```bash
8 npm i is-primitive --save
9 ```
10
11 ## Running tests
12 Install dev dependencies.
13
14 ```bash
15 npm i -d && npm test
16 ```
17
18 ## Usage
19
20 ```js
21 var isPrimitive = require('is-primitive');
22 isPrimitive('abc');
23 //=> true
24
25 isPrimitive(42);
26 //=> true
27
28 isPrimitive(false);
29 //=> true
30
31 isPrimitive(true);
32 //=> true
33
34 isPrimitive({});
35 //=> false
36
37 isPrimitive([]);
38 //=> false
39
40 isPrimitive(function(){});
41 //=> false
42 ```
43
44 ## Author
45
46 **Jon Schlinkert**
47  
48 + [github/jonschlinkert](https://github.com/jonschlinkert)
49 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 
50
51 ## License
52 Copyright (c) 2014-2015 Jon Schlinkert  
53 Released under the MIT license
54
55 ***
56
57 _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 16, 2015._