lewisdale.dev/config/filters/arrays.js
2023-02-10 14:38:00 +00:00

3 lines
114 B
JavaScript

module.exports = function(eleventyConfig) {
eleventyConfig.addFilter('take', (list, n) => list.slice(0, n));
}