x/rambda/source/toPairs.spec.js
1234567891011121314151617import {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)})