JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q34562F
  • License MIT

Map object keys and values into an array

Package Exports

  • map-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (map-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

map-array

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) 2015 parro-it