Skip to content

emitdb/parentchild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status deps status

parentchild

Returns all parent child relations from a json file

console.log(
  parentchild({
    a: {
      b: 'foo'
    },
    c: ['a', 'b']
  }));

Returns

  [['child', undefined, 'a'],
   ['child', 'a', 'b'],
   ['value', 'b', 'foo'],
   ['child', undefined, 'c'],
   ['inarray', 'c', 'a'],
   ['inarray', 'c', 'b']]

About

Returns all parent child relations from a json file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published