Welshman Docs / @welshman/lib / spec
Function: spec() ​
spec(
values): (x, ...args) =>boolean
Defined in: packages/lib/src/Tools.ts:1451
Returns a function that checks if key/value pairs of x match all pairs in spec
Parameters ​
values ​
any[] | Obj<any>
Returns ​
(
x, ...args):boolean
Parameters ​
x ​
any[] | Obj<any>
args ​
...unknown[]
Returns ​
boolean