arr-obj-keys
Advanced tools
Comparing version 1.0.0 to 1.1.0
'use strict'; | ||
var arrayUnion = require('array-union'); | ||
module.exports = function (arr) { | ||
@@ -12,3 +10,3 @@ var ret = []; | ||
for (var i = 0; i < arr.length; i++) { | ||
ret = arrayUnion(ret, Object.keys(arr[i])); | ||
ret = ret.concat(Object.keys(arr[i])); | ||
} | ||
@@ -15,0 +13,0 @@ |
{ | ||
"name": "arr-obj-keys", | ||
"version": "1.0.0", | ||
"description": "Get the unique keys of an array of objects", | ||
"version": "1.1.0", | ||
"description": "Get the keys of an array of objects", | ||
"license": "MIT", | ||
@@ -27,5 +27,2 @@ "repository": "kevva/arr-obj-keys", | ||
], | ||
"dependencies": { | ||
"array-union": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
@@ -32,0 +29,0 @@ "ava": "^0.0.4", |
# arr-obj-keys [![Build Status](https://travis-ci.org/kevva/arr-obj-keys.svg?branch=master)](https://travis-ci.org/kevva/arr-obj-keys) | ||
> Get the unique keys of an array of objects | ||
> Get the keys of an array of objects | ||
@@ -27,3 +27,3 @@ | ||
}]); | ||
//=> ['cat', 'foo', 'unicorn'] | ||
//=> ['cat', 'foo', 'unicorn', 'cat'] | ||
``` | ||
@@ -30,0 +30,0 @@ |
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
0
2536
11
- Removedarray-union@^1.0.1
- Removedarray-union@1.0.2(transitive)
- Removedarray-uniq@1.0.3(transitive)