Skip to content

prateekpronoc/json-indexify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-indexify

Build Status Coverage Status npm version dependencies

NPM

A small library that indexify the array of json objects

Installation

npm install json-indexify

Usage

var indexify = require('json-indexify');

var indexifiesObject = indexify([{ id: 91, value: 'India' }, { id: 1, value: 'USA' }],'id','value');

Output should be {'1': 'USA', '91': 'India'}

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

About

json-indexify is the helper method backed by loadsh

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published