Mathematical Methods
enmap.math(key, operation, operator, [objectPath])
// Assuming
points.set("number", 42);
points.set("numberInObject", {sub: { anInt: 5 }});
points.math("number", "/", 2); // 21
points.math("number", "add", 5); // 26
points.math("number", "modulo", 3); // 2
points.math("numberInObject", "+", 10, "sub.anInt");enmap.inc(key, [objectPath])
enmap.dec(key. [objectPath])
Last updated