forked from waja/action-debian-package
update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
37
node_modules/ramda/src/clone.js
generated
vendored
Normal file
37
node_modules/ramda/src/clone.js
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
var _clone =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_clone");
|
||||
|
||||
var _curry1 =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_curry1");
|
||||
/**
|
||||
* Creates a deep copy of the value which may contain (nested) `Array`s and
|
||||
* `Object`s, `Number`s, `String`s, `Boolean`s and `Date`s. `Function`s are
|
||||
* assigned by reference rather than copied
|
||||
*
|
||||
* Dispatches to a `clone` method if present.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.1.0
|
||||
* @category Object
|
||||
* @sig {*} -> {*}
|
||||
* @param {*} value The object or array to clone
|
||||
* @return {*} A deeply cloned copy of `val`
|
||||
* @example
|
||||
*
|
||||
* const objects = [{}, {}, {}];
|
||||
* const objectsClone = R.clone(objects);
|
||||
* objects === objectsClone; //=> false
|
||||
* objects[0] === objectsClone[0]; //=> false
|
||||
*/
|
||||
|
||||
|
||||
var clone =
|
||||
/*#__PURE__*/
|
||||
_curry1(function clone(value) {
|
||||
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
|
||||
});
|
||||
|
||||
module.exports = clone;
|
Loading…
Add table
Add a link
Reference in a new issue