es-toolkit
es-toolkit copied to clipboard
fix(cloneDeep): Copy all properties from the source using `Reflect.ownKeys()`
const obj = {
a: 1,
b: 2,
[Symbol('1')]: 1,
};
Object.defineProperty(obj, 'c', {
value: 3,
enumerable: false,
});
console.log(Object.keys(obj));
// ["a", "b"]
console.log(Reflect.ownKeys(obj));
// ["a", "b", "c", Symbol(1)]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| es-toolkit | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 23, 2024 7:59am |
Seems that the new implementation is causing problems, let me check.
It looks like this issue has already been resolved through this PR, so I will close it.
Thank you for your contribution, and feel free to reopen it if you have any questions!