lewisdale.dev/config/filters/arrays.js

3 lines
114 B
JavaScript
Raw Normal View History

2023-02-10 14:38:00 +00:00
module.exports = function(eleventyConfig) {
eleventyConfig.addFilter('take', (list, n) => list.slice(0, n));
}