Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fj-indexify

1.0.0 • Public • Published

fj-indexify

Build Status npm version

Indexify an array

Installation

npm install fj-indexify --save

Usage

var indexify = require('fj-indexify');
 
const a = ["foo", "bar", "moo"];
const aIdxd = indexify(a);
console.log(aIdxd); // => [[0, "foo"], [1, "bar"], [2, "moo"]]
 
map((i) => i[0] + i[1], aIdxd); // => ["0foo", "1bar", "2moo"]

Keywords

install

npm i fj-indexify

Downloadsweekly downloads

5

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability