flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
16 lines (13 loc) • 303 B
JavaScript
import { isObject } from './is-object.mjs';
function cloneDeep(source) {
if (!isObject(source)) {
return source;
}
const output = {};
for (const key in source) {
output[key] = cloneDeep(source[key]);
}
return output;
}
export { cloneDeep };
//# sourceMappingURL=clone-deep.mjs.map