UNPKG

vevet

Version:

Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.

10 lines 405 B
export function mergeWithNoUndefined(source, add) { const addKeys = Object.keys(add); const addNonUndefinedKeys = addKeys.filter((key) => add[key] !== undefined); const newAdd = addNonUndefinedKeys.reduce((acc, key) => { acc[key] = add[key]; return acc; }, {}); return Object.assign(Object.assign({}, source), newAdd); } //# sourceMappingURL=mergeWithNoUndefined.js.map