UNPKG

@shopify/theme-language-server-common

Version:

<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>

12 lines 392 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findLast = void 0; // Array.prototype.findLast is only available in es2023. Which feels too new? function findLast(array, pred) { for (let i = array.length - 1; i >= 0; i--) { if (pred(array[i])) return array[i]; } } exports.findLast = findLast; //# sourceMappingURL=array.js.map