--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 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…
Reference in a new issue