Skip to content

JS-Void-Packages/void-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Add a Java style map to javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published