Skip to main content
Module

x/rambda/source/toPairs-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {toPairs} from 'rambda'
const obj = { a: 1, b: 2, c: [3, 4],}
describe('R.toPairs', () => { it('happy', () => { const result = toPairs(obj)
result // $ExpectType (["b", number] | ["a", number] | ["c", number[]])[] })})