Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
13
node_modules/is-primitive/index.js
generated
vendored
Normal file
13
node_modules/is-primitive/index.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*!
|
||||
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
// see http://jsperf.com/testing-value-is-primitive/7
|
||||
module.exports = function isPrimitive(value) {
|
||||
return value == null || (typeof value !== 'function' && typeof value !== 'object');
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue