@shopify/prettier-plugin-liquid
Version:
Prettier Liquid/HTML plugin by Shopify
20 lines • 535 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEmpty = exports.intersperse = exports.first = exports.last = void 0;
function last(x) {
return x[x.length - 1];
}
exports.last = last;
function first(x) {
return x[0];
}
exports.first = first;
function intersperse(array, delim) {
return array.flatMap((val) => [delim, val]).slice(1);
}
exports.intersperse = intersperse;
function isEmpty(col) {
return col.length === 0;
}
exports.isEmpty = isEmpty;
//# sourceMappingURL=array.js.map