void-map
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

void-map

VoidMap is a Java style map written in javascript.

instalation

npm install void-map

example

// import { VoidMap } from 'void-map';
const { VoidMap } = require('void-map');

let map = new VoidMap();

map.put("are", 10);
map.put("you", 9);
map.put("sure", 8);

// log the keys and values
for(let [key, value] of map.entries()) {
    console.log(key, value);
}

// filter the map with values > 10
let filter = map.filter((key, value, index) => value>10);
filter.forEach(console.log);

/void-map/

    Package Sidebar

    Install

    npm i void-map

    Weekly Downloads

    3

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    10.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • mrthomas20121