UNPKG

knip

Version:

Find unused files, dependencies and exports in your TypeScript and JavaScript projects

5 lines (4 loc) 220 B
export const extractFunctionsConfigProperty = (config, property) => [ ...(config[property] ?? []), ...Object.values(config).filter(x => typeof x === 'object' && property in x).flatMap(x => x[property] || []), ];