1.0.4 • Published 7 years ago

incrediblehash v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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!

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago