2 * is-primitive <https://github.com/jonschlinkert/is-primitive>
4 * Copyright (c) 2014-2015, Jon Schlinkert.
5 * Licensed under the MIT License.
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');