object-to-array
Convert object to array, where each item is an array of key & value. Useful for creating ES6 Map from a usual object.
Installation
$ npm install --save object-to-array
Usage
const objectToArray = ; const obj = a: 1 b: 2; const arr = ;//=> [//=> ['a', 1],//=> ['b', 2]//=> ] const map = arr;map;//=> 1
Related
License
MIT © Vadim Demedes