Skip to content

nabedkhan/array-column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

array-column

array column returns the values from a single object property from an array of objects

Install

Install with npm:

npm i array-column

Usage

const arrayColumn = require("array-column");

const persons = [
  { name: "Nabed", age: 25 },
  { name: "Shuvo", age: 24 },
  { name: "Akib", age: 23 },
];

arrayColumn(persons, "name"); // => [ 'Nabed', 'Shuvo', 'Akib' ]

Author

Nabed Khan

License

Copyright (c) 2022 Released under the MIT license

About

array column returns the values from a single object property from an array of objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published