map-array

1.2.1 • Public • Published

map-array

Greenkeeper badge

Map object keys and values into an array

Travis Build Status NPM module NPM downloads

Installation

npm install --save map-array

Usage

  const mapArray = require('map-array');
  const obj = {
    giorgio: 'Bianchi',
    gino: 'Rossi'
  };
  console.log(mapArray(obj, (key, value) => key + ' ' + value));
 

['giorgio Bianchi', 'gino Rossi']

Related

  • map-obj - Map object keys and values into a new object

License

The MIT License (MIT)

Copyright (c) 2017 parro-it

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.12latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.12
1.2.00
1.1.00
1.0.00
0.0.10

Package Sidebar

Install

npm i map-array

Weekly Downloads

2

Version

1.2.1

License

MIT

Last publish

Collaborators

  • parroit