Higher-order function. Allows to specify a pattern that is repeated. Returns a function where the elements are returned based on their index matching the pattern.
The pattern can be an array or a comma-separated list of booleans.
Parameters
mask: boolean[]
Returns TReturnType
pattern(...args:boolean[]):TReturnType
Higher-order function. Allows to specify a pattern that is repeated. Returns a function where the elements are returned based on their index matching the pattern.
The pattern can be an array or a comma-separated list of booleans.
Higher-order function. Allows to specify a pattern that is repeated. Returns a function where the elements are returned based on their index matching the pattern. The pattern can be an array or a comma-separated list of booleans.