MCPcopy Index your code
hub / github.com/microsoft/SandDance / find

Function find

docs/app/js/sanddance-app.js:23246–23250  ·  view source on GitHub ↗
(array, cb)

Source from the content-addressed store, hash-verified

23244 return index;
23245}
23246function find(array, cb) {
23247 var index = findIndex(array, cb);
23248 if (index < 0) return undefined;
23249 return array[index];
23250}
23251function createArray(size, getItem) {
23252 var array = [];
23253 for(var i = 0; i < size; i++)array.push(getItem(i));

Callers 5

sanddance-app.jsFile · 0.70
initializeFunction · 0.70
parseMergeFunction · 0.70
parseBetweenFunction · 0.70
parseStreamFunction · 0.70

Calls 3

findIndexFunction · 0.85
fieldFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected