Skip to main content
Module

x/rambda/source/dissoc-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {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
// $ExpectError result.b }) it('curried', () => { const result = dissoc('b')(obj)
result.a // $ExpectType string })})