Skip to content
parro-itPublic

About

Map object keys and values into an array.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

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

About

Map object keys and values into an array.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages