deno.land / x / rambda@v9.1.1 / source / dissoc-spec.ts
123456789101112131415161718192021222324252627import {dissoc} from 'rambda'
interface Input { a: string, b: string,}const obj: Input = { a: 'foo', b: 'bar',}
describe('R.dissoc', () => { it('happy', () => { const result = dissoc('b', obj)
result.a // $ExpectType string
// @ts-expect-error result.b }) it('curried', () => { const result = dissoc('b')(obj)
result.a // $ExpectType string })})
Version Info