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

Function some

docs/app/js/sanddance-app.js:94491–94496  ·  view source on GitHub ↗

* Helper function that returns true if any element in an array meets given criteria. * Because older browsers do not support `Array.prototype.some` * @params array {Array} * @params predict {Function}

(array, predict)

Source from the content-addressed store, hash-verified

94489 * @params array {Array}
94490 * @params predict {Function}
94491 */ function some(array, predict) {
94492 for(let i = 0; i < array.length; i++){
94493 if (predict(array[i])) return true;
94494 }
94495 return false;
94496}
94497function enhancePointerEventInput(PointerEventInput) {
94498 const oldHandler = PointerEventInput.prototype.handler;
94499 // overrides PointerEventInput.handler to accept right mouse button

Callers 1

enhancePointerEventInputFunction · 0.70

Calls 1

predictFunction · 0.70

Tested by

no test coverage detected