mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-08 05:26:56 +00:00
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
define(['./isObject', './isArray', './extend'], function (isObject, isArray, extend) {
|
|
|
|
// Create a (shallow-cloned) duplicate of an object.
|
|
function clone(obj) {
|
|
if (!isObject(obj)) return obj;
|
|
return isArray(obj) ? obj.slice() : extend({}, obj);
|
|
}
|
|
|
|
return clone;
|
|
|
|
});
|