UNPKG

@urso/revolt-fx

Version:

Particle and Effect System for Pixi.js

12 lines 341 B
export default function deepClone(obj) { if (typeof obj !== 'object' || obj === null) { return obj; } const clonedObj = Array.isArray(obj) ? [] : {}; for (const key in obj) { const value = obj[key]; clonedObj[key] = deepClone(value); } return clonedObj; } //# sourceMappingURL=DeepClone.js.map