Array Snippets
Retrievals
- Get all arrays of consecutive elements
- Get all n-th items of an array
- Get all subsets of an array
- Get indices of a value in an array
- Get the average of an array
- Get the intersection of arrays
- Get the rank of an array of numbers
- Get the sum of an array of numbers
- Get the unique values of an array
- Get union of arrays
Discovery
- Find the closest number from an array
- Find the index of the last matching item of an array
- Find the index of the maximum item of an array
- Find the index of the minimum item of an array
- Find the length of the longest string in an array
- Find the maximum item of an array by given key
- Find the maximum item of an array
- Find the minimum item of an array by given key
- Find the minimum item of an array
Other
- Check if an array is empty
- Clone an array
- Compare two arrays regardless of order
- Compare two arrays
- Convert an array of objects to a single object
- Convert an array of strings to numbers
- Count by the properties of an array of objects
- Count the occurrences of a value in an array
- Count the occurrences of array elements
- Create an array of cumulative sum
- Create an array of numbers in the given range
- Create cartesian product
- Empty an array
- Generate an array of alphabet characters
- Generate an array of arbitrary size
- Group an array of objects by a key
- Intersperse element between elements
- Merge two arrays
- Partition an array based on a condition
- Remove duplicate values in an array
- Remove falsy values from array
- Repeat an array
- Shuffle an array
- Sort an array of items by given key
- Sort an array of numbers
- Split an array into chunks
- Swap the rows and columns of a matrix
- Swap two array items
- Unzip an array of arrays
- Zip multiple arrays