isArrayLike.js 380 Bytes
define(['./getLength', './isLength'], function(getLength, isLength) {

  /**
   * Checks if `value` is array-like.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
   */
  function isArrayLike(value) {
    return value != null && isLength(getLength(value));
  }

  return isArrayLike;
});