1.0.3 • Published 1 year ago

objutils v1.0.3

Weekly downloads
57
License
-
Repository
github
Last release
1 year 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.3

1 year ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago