WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

fp-js/fj-indexify

Repository files navigation

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"]

About

Indexify an array

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published