MCPcopy Create free account
hub / github.com/everkinetic/data / cont

Function cont

scripts/test.js:31–41  ·  view source on GitHub ↗
(name, fnFilter, fnMap)

Source from the content-addressed store, hash-verified

29if (error) throw new Error('Whoops!');
30
31function cont(name, fnFilter, fnMap) {
32 var list = _.chain(data).filter(fnFilter).map(fnMap || function (data) {
33 return data.id;
34 }).value();
35
36 if (!list.length) return;
37 result.push({
38 name: name,
39 list: list
40 });
41}

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected