UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

12 lines (10 loc) 269 B
const findIndexRight = (array, predicate) => { for (let index = array.length - 1; index >= 0; index--) { if (predicate(array[index], index, array)) { return index; } } return -1; }; export { findIndexRight }; //# sourceMappingURL=findRight.mjs.map