1.0.2 • Published 2 years ago

objutils v1.0.2

Weekly downloads
57
License
-
Repository
github
Last release
2 years ago

Usage:

var input = {
	a: 1,
	b: 2
};

var mapResult = objutils.objMap(input, function(item, key, obj) {
	return item * 2;
});

t.equal(input.a, 1);
t.equal(input.b, 2);

t.equal(mapResult.a, 2);
t.equal(mapResult.b, 4);

var reduceResult = objutils.objReduce(input, function(buffer, item, key, obj) {
	return buffer + item;
}, 1);

t.equal(reduceResult, 4);

objutils.objForEach(input, function(item, key, obj) {
	// ...
}, 1);

t.done();
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago

0.0.11

8 years ago

0.0.10

9 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago