Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 */
34
const
sum = (N) => N.reduce((sum, n) => sum + n, 0);
35
36
function
test (binding) {
37
async
function
check (bindingFunction) {
Callers
2
check
Function · 0.70
checkAcquire
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected