Icontem

File: example/example1.js

Recommend this page to a friend!
  Classes of ryan silalahi  >  Encyclopedia  >  example/example1.js  >  Download  
File: example/example1.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Encyclopedia
Store large objects in many smaller ones
Author: By
Last change:
Date: 4 years ago
Size: 262 bytes
 

Contents

Class file image Download
var enc = require('./..');

var test = enc();

var max = 8;
for(var i = 0; i < max; i++){
	test.set(i, i);
}


test.set(2, 'dva');
test.set(5, 'pyat');

test.walk(function(k, v){
	console.log(k + ' => ' + v);
});

console.log('now length: ' + test.getLength());