MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / sum

Function sum

test/threadsafe_function/threadsafe_function_sum.js:34–34  ·  view source on GitHub ↗
(N)

Source from the content-addressed store, hash-verified

32
33/** @param {number[]} N */
34const sum = (N) => N.reduce((sum, n) => sum + n, 0);
35
36function test (binding) {
37 async function check (bindingFunction) {

Callers 2

checkFunction · 0.70
checkAcquireFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected