ToArray

Converts objects into meaningful sequences.

Github repository for your stars.

Usage

Install

$ npm install json-function

Import

import { toArray } from 'json-function';

Usage

Example Data

const data = {
  'SpahhfW88GEcnVEXBkSB': {
    name: 'John'
  },
  'kDdjXxZWZwzKfYOyLUkE': {
    name: 'Mike'
  },
  'yPND1ItYbQXgoBXIAsz8': {
    name: 'Dan'
  }
};

Default key

Output

Use custom key

Output

Last updated

Was this helpful?