UNPKG

@eluvio/elv-js-helpers

Version:

A collection of Javascript helper functions used by several Eluvio libraries.

28 lines (26 loc) 588 B
// AUTO-GENERATED TEST - DO NOT MODIFY, CHANGES WILL BE OVERWRITTEN DURING BUILD 'use strict' const TH = require('../../../test-helpers') const objFromEntries = TH.requireSrcFile('Conversion/objFromEntries') describe('objFromEntries JSDoc example', () => { it('should execute correctly as described', () => { 'use strict' const kvPairs = [ ['a', 1], [ 'b', [ ['c', 3], ['d', 4], ], ], ] objFromEntries(kvPairs).should.eql({ a: 1, b: [ ['c', 3], ['d', 4], ], }) }) })