a5cf64a1ef39c73929b5eb58cd126a393174f74a4795e49fa7ca7769dc943b708870ccee803d217f0db82dbe5e16eb1e87e120624587feef973be05fc3c5c4 360 B

12345678910111213
  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. 'use strict';
  8. // see http://jsperf.com/testing-value-is-primitive/7
  9. module.exports = function isPrimitive(value) {
  10. return value == null || (typeof value !== 'function' && typeof value !== 'object');
  11. };