Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arr-obj-keys

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arr-obj-keys - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

index.js
'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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc