deno.land / x / rambda@v9.1.1 / source / identical-spec.ts
123456789101112131415161718192021222324252627import {identical} from 'rambda'
describe('R.identical', () => { it('happy', () => { const result = identical(4, 1) const curriedResult = identical(4)(1) result // $ExpectType boolean curriedResult // $ExpectType boolean }) it('with object', () => { const result = identical({a: 1}, {b: 2}) result // $ExpectType boolean identical({a: 1}, {b: 2})
// @ts-expect-error identical({a: 1})({b: 2}) }) it('with object - explicit type', () => { interface Foo { a: number, } identical<Foo>({a: 1}, {a: 2}) // @ts-expect-error identical<Foo>({a: 1}, {b: 2}) })})
Version Info