# group-from

> Create group from a property object value

Latest version **0.3.1** (published 2016-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install group-from
pnpm add group-from
yarn add group-from
bun add group-from
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2016-03-22 |
| First published | 2016-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nju33 |
| Maintainers | nju33 |

## Links

- npm: https://www.npmjs.com/package/group-from
- Repository: https://github.com/totora0155/group-from
- Homepage: https://github.com/totora0155/group-from#readme
- Issues: https://github.com/totora0155/group-from/issues
- npm.io page: https://npm.io/package/group-from

## Dependencies (3)

- [lodash.get](https://npm.io/package/lodash.get.md) ^4.1.2
- [lodash.foreach](https://npm.io/package/lodash.foreach.md) ^4.1.0
- [lodash.transform](https://npm.io/package/lodash.transform.md) ^4.2.1

## Recent versions

- 0.3.1 (latest) — 2016-03-22
- 0.3.0 — 2016-03-22
- 0.2.0 — 2016-03-22
- 0.1.0 — 2016-03-22

## README

# group-from

[![npm version](https://badge.fury.io/js/group-from.svg)](https://badge.fury.io/js/group-from)
[![Build Status](https://travis-ci.org/totora0155/group-from.svg?branch=master)](https://travis-ci.org/totora0155/group-from)

Create group from a property object value

---

## Install

```
npm i group-from
```

## Usage

```js
const groupFrom = require('group-form');

const data = [
  {
    parent: {
      child: {
        categories: [
          'foo',
          'bar',
        ],
      },
    },
  },
  {
    parent: {
      child: {
        categories: [
          'foo',
          'baz',
        ],
      },
    },
  },
];

console.log(groupFrom(data, 'parent.child.categories'));

```

output.

```js
{ foo: [ { parent: [Object] }, { parent: [Object] } ],
  bar: [ { parent: [Object] } ],
  baz: [ { parent: [Object] } ] }
```

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