Array

Array operations and transformations

Array

Array operations and transformations

Functions

  • all: Checks whether the provided array has all elements that match the specified expression.
  • any: Checks whether the provided array has any elements that match the specified expression.
  • append: Appends elements to an array.
  • distinct: Returns a new array with duplicate elements removed.
  • filter: Returns a new array with the elements of the input array that match the specified expression.
  • find: Finds the first element in an array that matches the specified expression.
  • findIndex: Finds the index of the first element in the input array that satisfies the given Jexl expression.
  • join: Joins elements of an array into a string.
  • keys: Returns the keys of an object as an array.
  • map: Returns an array containing the results of applying the expression parameter to each value in the array parameter.
  • mapField: Returns a new array with elements transformed by extracting a specific field.
  • reduce: Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function.
  • reverse: Reverses the elements of an array.
  • shuffle: Shuffles the elements of an array randomly.
  • sort: Sorts the elements of an array.
  • toObject: Creates a new object based on key-value pairs or string keys.

Transforms

  • all: Checks whether the provided array has all elements that match the specified expression.
  • any: Checks whether the provided array has any elements that match the specified expression.
  • append: Appends elements to an array.
  • distinct: Returns a new array with duplicate elements removed.
  • filter: Returns a new array with the elements of the input array that match the specified expression.
  • find: Finds the first element in an array that matches the specified expression.
  • findIndex: Finds the index of the first element in the input array that satisfies the given Jexl expression.
  • join: Joins elements of an array into a string.
  • keys: Returns the keys of an object as an array.
  • map: Returns an array containing the results of applying the expression parameter to each value in the array parameter.
  • mapField: Returns a new array with elements transformed by extracting a specific field.
  • reduce: Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function.
  • reverse: Reverses the elements of an array.
  • shuffle: Shuffles the elements of an array randomly.
  • sort: Sorts the elements of an array.
  • toObject: Creates a new object based on key-value pairs or string keys.
Cookie Notice

We use cookies to enhance your browsing experience.