incrediblehash

1.0.4 • Public • Published

IncredibleHash.js

Implementation of this dirty hack:

arr = [];
arr.push('max');
arr['max'] = 'super';
console.log(arr);
//['max', 'max': 'super']
console.log(arr.length);
//1

Example:

var IncredibleHash = require('incrediblehash');

map = new IncredibleHash();
map.addToHash('max', 'super');
console.log(map.getFromHash('max'));
//'super'
console.log(map.getFromHash(0));
//'max'
console.log(map.length);
//1

Is it incredible, isn't it? Download and use it now!

Readme

Keywords

Package Sidebar

Install

npm i incrediblehash

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.08 kB

Total Files

5

Last publish

Collaborators

  • nabokihms