MCPcopy Index your code
hub / github.com/nodejs/node / modes

Function modes

test/fixtures/wpt/web-locks/query.https.any.js:7–9  ·  view source on GitHub ↗
(list, name)

Source from the content-addressed store, hash-verified

5
6// Returns an array of the modes for the locks with matching name.
7function modes(list, name) {
8 return list.filter(item => item.name === name).map(item => item.mode);
9}
10// Returns an array of the clientIds for the locks with matching name.
11function clients(list, name) {
12 return list.filter(item => item.name === name).map(item => item.clientId);

Callers 1

query.https.any.jsFile · 0.85

Calls 2

mapMethod · 0.65
filterMethod · 0.65

Tested by

no test coverage detected