
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@baiwusanyu/utils-obj
Advanced tools
将两个对象合并成一个对象,其中第一个对象中冲突项将被第二个对象覆盖 (并不支持深层对象析合并覆盖)
| 参数 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|
| objFir | T extends Record<string, any> | - | 合并的第一个对象 |
| objSec | U extends Record<string, any> | - | 合并的第二个对象 |
| 返回值 | 返回类型 | 说明 |
|---|---|---|
| obj | T & U | 合并后的对象 |
将两个对象合并成一个对象,其中第一个对象中冲突项将被第二个对象覆盖 (支持深层对象析合并覆盖)
| 参数 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|
| objFir | T extends Record<string, any> | - | 合并的第一个对象 |
| objSec | U extends Record<string, any> | - | 合并的第二个对象 |
| 返回值 | 返回类型 | 说明 |
|---|---|---|
| obj | T & U | 合并后的对象 |
使用 Json api 深度克隆一个对象
| 参数 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|
| obj | T extends Record<any, any> | - | 待克隆对象 |
| 返回值 | 返回类型 | 说明 |
|---|---|---|
| obj | T | 克隆结果对象 |
递归的深度克隆一个对象
| 参数 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|
| obj | T | - | 待克隆对象 |
| 返回值 | 返回类型 | 说明 |
|---|---|---|
| obj | T | 克隆结果对象 |
FAQs
## Function
The npm package @baiwusanyu/utils-obj receives a total of 503 weekly downloads. As such, @baiwusanyu/utils-obj popularity was classified as not popular.
We found that @baiwusanyu/utils-obj demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.