fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
1 lines • 554 B
Source Map (JSON)
{"version":3,"file":"findRight.mjs","names":[],"sources":["../../../../src/util/internals/findRight.ts"],"sourcesContent":["export const findIndexRight = <T>(\n array: T[],\n predicate: (value: T, index: number, array: T[]) => boolean,\n) => {\n for (let index = array.length - 1; index >= 0; index--) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n};\n"],"mappings":";AAAA,MAAa,kBACX,OACA,cACG;AACH,MAAK,IAAI,QAAQ,MAAM,SAAS,GAAG,SAAS,GAAG,QAC7C,KAAI,UAAU,MAAM,QAAQ,OAAO,MAAM,CACvC,QAAO;AAGX,QAAO"}