isSubset (Functional Programming) es-toolkit
Creates a function that checks whether the piped array is a subset of another array. Use it with pipe.
Info
Usage
isSubset returns true when every value in the piped array is present in superset.
Parameters
supersetreadonly T[]required
The array that may contain all values from the piped array.
Returns
A function that maps a readonly T[] to whether it is a subset.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.