MCPcopy Index your code
hub / github.com/parse-community/parse-server / incrementOp

Function incrementOp

src/StatusHandler.js:14–21  ·  view source on GitHub ↗
(object = {}, key, amount = 1)

Source from the content-addressed store, hash-verified

12const jobPromiseQueue = new KeyPromiseQueue();
13
14const incrementOp = function (object = {}, key, amount = 1) {
15 if (!object[key]) {
16 object[key] = { __op: 'Increment', amount: amount };
17 } else {
18 object[key].amount += amount;
19 }
20 return object[key];
21};
22
23export function flatten(array) {
24 var flattened = [];

Callers 1

trackSentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected