hash-to-collection
convert a hash to a collection
Install
yarn add hash-to-collection
API
Arguments
collection (Array): the collection to convert keyName (string): the key name your hash keys will be stored as (default: 'key')
Usage
const hash = 123: ... abc: ... const collection = /* [{ uid: 123, ... }, { uid: 'abc', ... }]*/
Contributing
Contributions welcome! Please read the contributing guidelines first.