UNPKG

@boost/config

Version:

Powerful convention based finder, loader, and manager of both configuration and ignore files.

7 lines (6 loc) 260 B
/** * Merges previous and next arrays into a new array while removing duplicates (using `Set`). */ export function mergeArray<T extends unknown[]>(prev: T, next: T): T { return [...new Set([...prev, ...next])].filter((value) => value !== undefined) as T; }