deno.land / x / rambda@v9.1.1 / source / where-spec.ts
123456789101112131415161718192021import {where, equals} from 'rambda'
describe('R.where', () => { it('happy', () => { const input = { a: 'foo', b: 'bar', x: 11, y: 19, } const conditions = { a: equals('foo'), b: equals('bar'), } const result = where(conditions, input) const curriedResult = where(conditions)(input) result // $ExpectType boolean curriedResult // $ExpectType boolean })})
Version Info