export deepMerge
All checks were successful
Build / Build NPM Project (push) Successful in 22s
Build / Tag Version (push) Successful in 4s

This commit is contained in:
Zakary Timson 2024-06-18 20:19:10 -04:00
parent ac5b0b8b41
commit 3a039c935f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.12.0",
"version": "0.12.1",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -42,7 +42,7 @@ export function deepCopy<T>(value: T): T {
* @param sources Objects that will copied into target
* @return {any} The des
*/
function deepMerge<T>(target: any, ...sources: any[]): T {
export function deepMerge<T>(target: any, ...sources: any[]): T {
for(const source of sources) {
for(const key in source) {
if(source[key] && typeof source[key] == 'object' && !Array.isArray(source[key])) {