MCPcopy Index your code
hub / github.com/docker/getting-started / find

Function find

app/src/static/js/react-bootstrap.js:3809–3817  ·  view source on GitHub ↗

* Mimics the `find` method of Array * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1

(arr, check)

Source from the content-addressed store, hash-verified

3807
3808
3809function find(arr, check) {
3810 // use native find if supported
3811 if (Array.prototype.find) {
3812 return arr.find(check);
3813 } // use `filter` to obtain the same behavior of `find`
3814
3815
3816 return arr.filter(check)[0];
3817}
3818/**
3819 * Return the index of the matching object
3820 * @method

Callers 5

findIndexFunction · 0.85
computeStyleFunction · 0.85
isModifierRequiredFunction · 0.85
parseOffsetFunction · 0.85
hideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…