i-object
Bro, does it even object?
It even does. It objects from an object, function, or array of objects, functions, and said arrays. Pass any of that stuff and get back a merged object.
Functions can return anything mentioned above. Recursive stuff happens and an object is produced. Don't think about it. Just pass stuff in, return stuff from functions, and get an object.
install
npm install i-object
example
const getObject = // -> {a: 456, b: 'b'}
API
getObject(input, args)
input: object, function, array
input to be used to find objectsargs: []
: functions found withininput
will be called with these arguments- returns:
object
duh
See tests.