UNPKG

@nesvet/n

Version:
10 lines 237 B
export function add(array, ...items) { let added = 0; for (const item of items) if (!array.includes(item)) { array.push(item); added++; } return added; } //# sourceMappingURL=add.js.map