isArrayLike()

Determines if an object is an array or at least array-like.

This function is valid in v2.19.0 to v2.24.3. This function has been downloaded 60 times.

Parameter

{*} o
A value to test and see if it array-like.

Returns

{boolean}
A boolean indicating if the object was an array or array-like.

Required Function

This function directly requires the following function which is included automatically:

  • nativeType()
    Gets the native type name of a primitive or an object. Unlike YourJS.typeOf(), the types are solely determined by the system.

Requiring Functions

This function is directly required by the following functions:

  • filter()
    Creates a new object or a new array based on the specified object array. This new array will only have the values which pass the test function.
  • forOf()
    Traverses all the characters in a string or all of the items in an array or an object, executing a function on each one.
  • isEmpty()
    Determines if an array, arguments list, other type of list or collection is empty. Also can be used on objects to ensure that it doesn't have any properties explicitly set.
  • isFalsy()
    Basically used to determine if something is falsy or is an empty collection of sorts.
  • map()
    Creates a new array or object with the results of calling a provided function on every item or property in the given object.
  • rekey()
    Modifies keys of an object or augments the object with more keys for the same values.
  • splice()
    Duplicates an array or a string and adds and/or removes one or more values from it. NOTE: This is different from the traditional splice function because it doesn't modify the array, but rather it returns a modified duplicate.
  • spread()
    Calls a function while flattening first-level array-like arguments so as the spread those individual values and use them as individual arguments.
  • toArray()
    Turns anything into an array.