isArray.js 1000 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * lodash 4.0.1 (Custom Build) <https://lodash.com/>
  3. * Build: `lodash modularize exports="es" include="clone,extend,isPlainObject,isObject,isArray,last,isEqual" --development --output src/lib/lodash`
  4. * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
  5. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  6. * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  7. * Available under MIT license <https://lodash.com/license>
  8. */
  9. /**
  10. * Checks if `value` is classified as an `Array` object.
  11. *
  12. * @static
  13. * @memberOf _
  14. * @type Function
  15. * @category Lang
  16. * @param {*} value The value to check.
  17. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
  18. * @example
  19. *
  20. * _.isArray([1, 2, 3]);
  21. * // => true
  22. *
  23. * _.isArray(document.body.children);
  24. * // => false
  25. *
  26. * _.isArray('abc');
  27. * // => false
  28. *
  29. * _.isArray(_.noop);
  30. * // => false
  31. */
  32. var isArray = Array.isArray;
  33. export default isArray;