Skip to main content
Module

x/rambda/toPairs.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { toPairs } from './toPairs'
const obj = { a : 1, b : 2, c : [ 3, 4 ],}const expected = [ [ 'a', 1 ], [ 'b', 2 ], [ 'c', [ 3, 4 ] ],]
test('happy', () => { expect(toPairs(obj)).toEqual(expected)})