UNPKG

@roxi/routify

Version:

6 lines (5 loc) 178 B
/** * returns an array filter that checks against filename * @param {string[]} names */ export const nameFilter = names => node => node.file && names.includes(node.file.base)