Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.clone

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.clone - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

16

index.js
/**
* lodash 4.0.0 (Custom Build) <https://lodash.com/>
* lodash 4.0.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -101,10 +101,10 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

* @param {*} [accumulator] The initial value.
* @param {boolean} [initFromArray] Specify using the first element of `array` as the initial value.
* @param {boolean} [initAccum] Specify using the first element of `array` as the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduce(array, iteratee, accumulator, initFromArray) {
function arrayReduce(array, iteratee, accumulator, initAccum) {
var index = -1,
length = array.length;
if (initFromArray && length) {
if (initAccum && length) {
accumulator = array[++index];

@@ -193,3 +193,3 @@ }

/** Built-in value references. */
var _Symbol = global.Symbol,
var Symbol = global.Symbol,
Uint8Array = global.Uint8Array,

@@ -207,4 +207,4 @@ getOwnPropertySymbols = Object.getOwnPropertySymbols;

/** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
symbolValueOf = _Symbol ? symbolProto.valueOf : undefined;
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = Symbol ? symbolProto.valueOf : undefined;

@@ -401,3 +401,3 @@ /**

function cloneSymbol(symbol) {
return _Symbol ? Object(symbolValueOf.call(symbol)) : {};
return Symbol ? Object(symbolValueOf.call(symbol)) : {};
}

@@ -404,0 +404,0 @@

{
"name": "lodash.clone",
"version": "4.0.1",
"version": "4.0.2",
"description": "The lodash method `_.clone` exported as a module.",

@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/",

@@ -1,2 +0,2 @@

# lodash.clone v4.0.1
# lodash.clone v4.0.2

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.clone` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.clone) for more details.
See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.clone) for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc