MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / first

Function first

ui/plugins/ui/jasmine/jasmine.js:8893–8901  ·  view source on GitHub ↗
(items, fn)

Source from the content-addressed store, hash-verified

8891 }
8892
8893 function first(items, fn) {
8894 for (const item of items) {
8895 const result = fn(item)
8896
8897 if (result) {
8898 return result
8899 }
8900 }
8901 }
8902
8903 function extractMessage(message, stackLines) {
8904 const len = messagePrefixLength(message, stackLines)

Callers 1

tryParseFramesFunction · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected