group-array
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -51,3 +51,3 @@ /*! | ||
if (typeof val === 'string') { | ||
if (typeof val === 'string' || typeof val === 'number') { | ||
groups[val] = groups[val] || []; | ||
@@ -54,0 +54,0 @@ groups[val].push(obj); |
{ | ||
"name": "group-array", | ||
"description": "Group array of objects into lists.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"homepage": "https://github.com/doowb/group-array", | ||
@@ -23,11 +23,11 @@ "author": "Brian Woodward (https://github.com/doowb)", | ||
"devDependencies": { | ||
"for-own": "^0.1.3", | ||
"kind-of": "^2.0.0", | ||
"mocha": "^2.2.5", | ||
"should": "^7.0.2", | ||
"union-value": "^0.1.1" | ||
"for-own": "^0.1.4", | ||
"gulp-format-md": "^0.1.9", | ||
"mocha": "^2.5.3", | ||
"should": "^9.0.2", | ||
"union-value": "^0.2.3" | ||
}, | ||
"dependencies": { | ||
"get-value": "^1.1.5", | ||
"kind-of": "^2.0.0" | ||
"get-value": "^2.0.6", | ||
"kind-of": "^3.0.3" | ||
}, | ||
@@ -45,2 +45,10 @@ "keywords": [ | ||
"verb": { | ||
"toc": true, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"related": { | ||
@@ -53,4 +61,11 @@ "list": [ | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"reflinks": true | ||
}, | ||
"reflinks": [ | ||
"verb-generate-readme", | ||
"verb" | ||
] | ||
} | ||
} |
@@ -1,11 +0,26 @@ | ||
# group-array [![NPM version](https://badge.fury.io/js/group-array.svg)](http://badge.fury.io/js/group-array) [![Build Status](https://travis-ci.org/doowb/group-array.svg)](https://travis-ci.org/doowb/group-array) | ||
# group-array [![NPM version](https://img.shields.io/npm/v/group-array.svg?style=flat)](https://www.npmjs.com/package/group-array) [![NPM downloads](https://img.shields.io/npm/dm/group-array.svg?style=flat)](https://npmjs.org/package/group-array) [![Build Status](https://img.shields.io/travis/doowb/group-array.svg?style=flat)](https://travis-ci.org/doowb/group-array) | ||
> Group array of objects into lists. | ||
Group array of objects into lists. | ||
## Table of Contents | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Examples](#examples) | ||
- [About](#about) | ||
* [Related projects](#related-projects) | ||
* [Contributing](#contributing) | ||
* [Building docs](#building-docs) | ||
* [Running tests](#running-tests) | ||
* [Author](#author) | ||
* [License](#license) | ||
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ | ||
## Install | ||
Install with [npm](https://www.npmjs.com/) | ||
Install with [npm](https://www.npmjs.com/): | ||
```sh | ||
$ npm i group-array --save | ||
$ npm install --save group-array | ||
``` | ||
@@ -148,35 +163,47 @@ | ||
## Related projects | ||
## About | ||
* [arr-reduce](https://github.com/jonschlinkert/arr-reduce): Fast array reduce that also loops over sparse elements. | ||
* [group-object](https://github.com/doowb/group-object): Group object keys and values into lists. | ||
* [get-value](https://github.com/jonschlinkert/get-value): Use property paths (` a.b.c`) to get a nested value from an object. | ||
* [union-value](https://github.com/jonschlinkert/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | ||
### Related projects | ||
## Running tests | ||
* [arr-reduce](https://www.npmjs.com/package/arr-reduce): Fast array reduce that also loops over sparse elements. | [homepage](https://github.com/jonschlinkert/arr-reduce "Fast array reduce that also loops over sparse elements.") | ||
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value "Use property paths (`a.b.c`) to get a nested value from an object.") | ||
* [group-object](https://www.npmjs.com/package/group-object): Group object keys and values into lists. | [homepage](https://github.com/doowb/group-object "Group object keys and values into lists.") | ||
* [union-value](https://www.npmjs.com/package/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | [homepage](https://github.com/jonschlinkert/union-value "Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.") | ||
Install dev dependencies: | ||
### Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
### Building docs | ||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ | ||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb): | ||
```sh | ||
$ npm i -d && npm test | ||
$ npm install -g verb verb-generate-readme && verb | ||
``` | ||
## Contributing | ||
### Running tests | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/group-array/issues/new) | ||
Install dev dependencies: | ||
## Author | ||
```sh | ||
$ npm install -d && npm test | ||
``` | ||
### Author | ||
**Brian Woodward** | ||
+ [github/doowb](https://github.com/doowb) | ||
+ [twitter/doowb](http://twitter.com/doowb) | ||
* [github/doowb](https://github.com/doowb) | ||
* [twitter/doowb](http://twitter.com/doowb) | ||
## License | ||
### License | ||
Copyright © 2015 Brian Woodward | ||
Released under the MIT license. | ||
Copyright © 2016, [Brian Woodward](https://github.com/doowb). | ||
Released under the [MIT license](https://github.com/doowb/group-array/blob/master/LICENSE). | ||
*** | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 22, 2015._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 15, 2016._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12011
208
+ Addedget-value@2.0.6(transitive)
+ Addedkind-of@3.2.2(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedget-value@1.3.1(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedkind-of@2.0.1(transitive)
- Removedlazy-cache@0.2.7(transitive)
- Removednoncharacters@1.1.0(transitive)
Updatedget-value@^2.0.6
Updatedkind-of@^3.0.3