# array-to-btree-object

> Takes an array of data and a comparison function, returns an object

Latest version **1.0.1** (published 2016-06-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install array-to-btree-object
pnpm add array-to-btree-object
yarn add array-to-btree-object
bun add array-to-btree-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 | 1.0.1 |
| Published | 2016-06-09 |
| First published | 2016-06-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Katsnelson |
| Maintainers | jkatsnelson |
| Keywords | btree |

## Links

- npm: https://www.npmjs.com/package/array-to-btree-object
- Repository: https://github.com/jkatsnelson/array-to-btree-object
- Homepage: https://github.com/jkatsnelson/array-to-btree-object#readme
- Issues: https://github.com/jkatsnelson/array-to-btree-object/issues
- npm.io page: https://npm.io/package/array-to-btree-object

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.13.1

## Recent versions

- 1.0.1 (latest) — 2016-06-09
- 1.0.0 — 2016-06-09

## README

# array-to-btree-object

This module takes a list and a comparison function, and returns an object that looks kinda like this:

```

{
  data: 'the-item-in-your-list',
  left: {
    data: 'another-item-in-your-list'
  },
  right: {
    data: 'another-item'
  }
}

```

The comparison function looks kinda like this:

```

function (item, treeItem) {
   return item > treeItem;
}


```

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