🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@baiwusanyu/utils-obj

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baiwusanyu/utils-obj

## Function

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
654
15.55%
Maintainers
1
Weekly downloads
 
Created
Source

@baiwusanyu/utils-obj

Function

extend

将两个对象合并成一个对象,其中第一个对象中冲突项将被第二个对象覆盖 (并不支持深层对象析合并覆盖)

参数参数类型默认值说明
objFirT extends Record<string, any>-合并的第一个对象
objSecU extends Record<string, any>-合并的第二个对象
返回值返回类型说明
objT & U 合并后的对象

extendDeep

将两个对象合并成一个对象,其中第一个对象中冲突项将被第二个对象覆盖 (支持深层对象析合并覆盖)

参数参数类型默认值说明
objFirT extends Record<string, any>-合并的第一个对象
objSecU extends Record<string, any>-合并的第二个对象
返回值返回类型说明
objT & U 合并后的对象

jsonClone

使用 Json api 深度克隆一个对象

参数参数类型默认值说明
objT extends Record<any, any>-待克隆对象
返回值返回类型说明
objT克隆结果对象

deepCopy

递归的深度克隆一个对象

参数参数类型默认值说明
objT-待克隆对象
返回值返回类型说明
objT克隆结果对象

Keywords

typescript

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts