UNPKG

@shopify/prettier-plugin-liquid

Version:
20 lines 535 B
"use strict"; 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