You can check the module import here.
Returns true if the collection is empty.
Returns the first element of the collection, or undefined if the collection is empty.
Returns every element but the last of the collection or empty array if the collection is empty.
Joins an array into a string.
Returns the last element of the collection or undefined if the collection is empty.
Returns every elements but the first of the collection or empty array if the collection is empty.
Returns the collection keeping only one duplicate.
Returns the collection without the specified elements.
Returns the intersection of two collection, works with deep equal.
Returns the union of two collection, works with deep equal.
Returns a range of number with a given size (default: 0) and start (default: 1).
The value on the left hand size does not matter, it is ignored.
Returns the collection that is passed through a map function. If no function is provided, the collection is returned unchanged.
Returns an array of the given property of the object in the array.
Filter an array with a given function or a property shorthand.
This pipe behaves exactly like where but only return the first element when is found. A default value can be provided if no such element exists.
Returns a new ordered array. You can order by multiple properties, ascending and descending.
Returns a reversed array.
Returns the length of the collection. Useful when used with other pipes, otherwise, use the length property. Works also for object and string.
Returns true if at least one of the item in the collections pass the predicate.
Returns true if every item in the collections pass the predicate.
Shuffles a collection.
Take the top n items of an array.
Take until the condition is met.
Take while the condition is met.
Drop the last n items of an array.
The deep pipe is different from other pipes, it doesn't return new data. It wraps data for other pipes to work with deep comparaisons.
The chunk pipe breaks the array into multiple, smaller arrays of a given size:
The flatten flattens an array. It can be used with the deep pipe.