1.1.0 • Published 9 years ago

arr-obj-keys v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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