lewisdale.dev/config/filters/arrays.js

3 lines
112 B
JavaScript
Raw Permalink Normal View History

2024-10-06 11:36:54 +00:00
export default function(eleventyConfig) {
2023-02-10 14:38:00 +00:00
eleventyConfig.addFilter('take', (list, n) => list.slice(0, n));
}