Initial commit
[yaffs-website] / node_modules / is-primitive / index.js
1 /*!
2  * is-primitive <https://github.com/jonschlinkert/is-primitive>
3  *
4  * Copyright (c) 2014-2015, Jon Schlinkert.
5  * Licensed under the MIT License.
6  */
7
8 'use strict';
9
10 // see http://jsperf.com/testing-value-is-primitive/7
11 module.exports = function isPrimitive(value) {
12   return value == null || (typeof value !== 'function' && typeof value !== 'object');
13 };