npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

arr-obj-keys

1.1.0

@kevva

npmHomeRepoSnykSocket
Downloads:1
$ npm install arr-obj-keys
DailyWeeklyMonthlyYearly

arr-obj-keys Build Status

Get the keys of an array of objects

Install

$ npm install --save arr-obj-keys

Usage

var arrObjKeys = require('arr-obj-keys');

arrObjKeys([{
	cat: 'meow'
}, {
	foo: 'bar'
}, {
	unicorn: 'foo'
}, {
	cat: 'meow'
}]);
//=> ['cat', 'foo', 'unicorn', 'cat']

API

arrObjKeys(array)

array

Required
Type: array

An array of objects with the keys you want to get.

License

MIT © Kevin Martensson