Skip to content

Welshman Docs / @welshman/lib / spec

Function: spec() ​

spec(values): (x, ...args) => boolean

Defined in: packages/lib/src/Tools.ts:607

Returns a function that checks if key/value pairs of x match all pairs in spec

Parameters ​

values ​

any[] | Obj<any>

Returns ​

Function

Parameters ​

x ​

any[] | Obj<any>

args ​

...unknown[]

Returns ​

boolean