mirror of
https://github.com/stCarolas/setup-maven.git
synced 2026-10-01 17:11:34 +00:00
chore: update dependencies
This commit is contained in:
761 files changed
+34401
-7527
No files matched your search
+9
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user