Skip to content

bhumilsarvaiya/json-daex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Installation

npm install json-daex

About

This project is currently in very early stage. Please feel free to share any idea to make this package better.

Documentation

Usage Example:

var daex = require('json-daex')
var obj = [
  {
    name: 'abc',
    type: 'array',
    age: 20
  },
  {
    name: 'pqr',
    type: 'string',
    age: 20
  },
  {
    name: 'xyz',
    type: 'array',
    age: 22
  },
  {
    name: 'ghi',
    type: 'array',
    age: 20
  },
  {
    name: 'mno',
    type: 'number',
    age: 20
  }
]

var result = daex.indexAll(obj,{'type':'array'})
console.log(result)
//get index of all objects with type: array
// Output: [ 0, 2, 3 ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published