UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

13 lines (11 loc) 251 B
export function whereAny(conditions, input){ if (input === undefined){ return _input => whereAny(conditions, _input) } for (const prop in conditions){ if (conditions[ prop ](input[ prop ])){ return true } } return false }