object-helper-reader
v1.0.7
Published
A helper class to make working with objects simpler
Downloads
16
Readme
Reader - npm install object-helper-reader
Official Repo for object-helper-reaper
This repo incudes the testing and same files as the Reader class which is published.
Methods
print() -prints an object to the console
provide(key) -takes a key and returns the including key along with any nesting inside that key
hasKey(key) -returns a boolean if a key exist on any layer of an object
hasValue(value) -returns a Boolean if a value exist in any layer of an object and its keys
getKey(value,amount) -takes a value, and an optional argument which is defaulted to one, and returns the key associated with the value in the form of an array
getValue(key,amount) -takes a key, and an optional argument which is defaulted to one, and returns the value associated with the key in the form of an array.
example.js
provides a look at all the functions being implmented for the Reader class.