chore: update dependencies

This commit is contained in:
Celio Ferreira committed 2022-06-28 10:39:30 +02:00
1 parent 417e1a9899
commit 2472a3802c
761 files changed
+34401 -7527

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import isObject from './isObject.js';
import isArray from './isArray.js';
import extend from './extend.js';
// Create a (shallow-cloned) duplicate of an object.
export default function clone(obj) {
if (!isObject(obj)) return obj;
return isArray(obj) ? obj.slice() : extend({}, obj);
}