# i-object

> Put in array, object, function, be recursive about it, use parameters, get a merged object.

Latest version **2.0.2** (published 2017-03-19) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install i-object
pnpm add i-object
yarn add i-object
bun add i-object
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2017-03-19 |
| First published | 2015-10-15 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Johnny Hauser |
| Maintainers | m59 |
| Keywords | object, objects, function, functions, array, arrays, recursive, merge |

## Links

- npm: https://www.npmjs.com/package/i-object
- Repository: https://github.com/m59peacemaker/js-i-object
- Homepage: https://github.com/m59peacemaker/js-i-object#readme
- Issues: https://github.com/m59peacemaker/js-i-object/issues
- npm.io page: https://npm.io/package/i-object

## Dependencies (1)

- [deepmerge](https://npm.io/package/deepmerge.md) ^1.3.0

## Recent versions

- 2.0.2 (latest) — 2017-03-19
- 2.0.1 — 2017-02-09
- 2.0.0 — 2016-11-16
- 1.0.1 — 2015-10-15
- 1.0.0 — 2015-10-15

## README

# 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.

![I object!](https://raw.githubusercontent.com/m59peacemaker/js-i-object/master/i-object.jpg "I object!")

## install

```sh
npm install i-object
```

## example

```js
const getObject = require('i-object')

getObject([
  {a: 123, b: 'b'},
  () => ({a: 456})
]) // -> {a: 456, b: 'b'}
```

## API

### `getObject(input, args)`

- `input: object, function, array` input to be used to find objects
- `args: []`: functions found within `input` will be called with these arguments
- **returns**: `object` duh

See [tests](https://github.com/m59peacemaker/js-i-object/blob/master/test/index.js).

---
_Source: https://npm.io/package/i-object · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
