2.0.2 • Published 9 years ago
i-object v2.0.2
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-objectexample
const getObject = require('i-object')
getObject([
{a: 123, b: 'b'},
() => ({a: 456})
]) // -> {a: 456, b: 'b'}API
getObject(input, args)
input: object, function, arrayinput to be used to find objectsargs: []: functions found withininputwill be called with these arguments- returns:
objectduh
See tests.