| /** @internal */ | |
| export const getAllObjectKeys = obj => { | |
| const keys = new Set(Reflect.ownKeys(obj)); | |
| if (obj.constructor === Object) return keys; | |
| if (obj instanceof Error) { | |
| keys.delete("stack"); | |
| } | |
| const proto = Object.getPrototypeOf(obj); | |
| let current = proto; | |
| while (current !== null && current !== Object.prototype) { | |
| const ownKeys = Reflect.ownKeys(current); | |
| for (let i = 0; i < ownKeys.length; i++) { | |
| keys.add(ownKeys[i]); | |
| } | |
| current = Object.getPrototypeOf(current); | |
| } | |
| if (keys.has("constructor") && typeof obj.constructor === "function" && proto === obj.constructor.prototype) { | |
| keys.delete("constructor"); | |
| } | |
| return keys; | |
| }; | |
| /** @internal */ | |
| export const byReferenceInstances = /*#__PURE__*/new WeakSet(); | |
| //# sourceMappingURL=equal.js.map |
Xet Storage Details
- Size:
- 797 Bytes
- Xet hash:
- 93d198c9edbf905f69d413e22e5963aec1d67215fb2f1f036041c0a9b0a76c01
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.