rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
18 lines (16 loc) • 480 B
text/typescript
import {Match} from '../Any/_Internal'
import {Includes as OIncludes} from '../Object/Includes'
import {ObjectOf} from './ObjectOf'
import {List} from './List'
/**
Check whether `L` has entries that match `M`
@param L to be inspected
@param M to check entry type
@param match (?=`'default'`) to change precision
@returns [[Boolean]]
@example
```ts
```
*/
export type Includes<L extends List, M extends any, match extends Match = 'default'> =
OIncludes<ObjectOf<L>, M, match>