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

lodash

Package Overview
Dependencies
Maintainers
5
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash - npm Package Compare versions

Comparing version 3.10.0 to 3.10.1

2

array/flatten.js

@@ -6,3 +6,3 @@ var baseFlatten = require('../internal/baseFlatten'),

* Flattens a nested array. If `isDeep` is `true` the array is recursively
* flattened, otherwise it is only flattened a single level.
* flattened, otherwise it's only flattened a single level.
*

@@ -9,0 +9,0 @@ * @static

@@ -10,3 +10,3 @@ var baseIndexOf = require('../internal/baseIndexOf'),

* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons. If `fromIndex` is negative, it is used as the offset
* for equality comparisons. If `fromIndex` is negative, it's used as the offset
* from the end of `array`. If `array` is sorted providing `true` for `fromIndex`

@@ -13,0 +13,0 @@ * performs a faster binary search.

@@ -6,3 +6,3 @@ var createSortedIndex = require('../internal/createSortedIndex');

* be inserted into `array` in order to maintain its sort order. If an iteratee
* function is provided it is invoked for `value` and each element of `array`
* function is provided it's invoked for `value` and each element of `array`
* to compute their sort ranking. The iteratee is bound to `thisArg` and

@@ -9,0 +9,0 @@ * invoked with one argument; (value).

@@ -11,3 +11,3 @@ var baseCallback = require('../internal/baseCallback'),

* is kept. Providing `true` for `isSorted` performs a faster search algorithm
* for sorted arrays. If an iteratee function is provided it is invoked for
* for sorted arrays. If an iteratee function is provided it's invoked for
* each element in the array to generate the criterion by which uniqueness

@@ -14,0 +14,0 @@ * is computed. The `iteratee` is bound to `thisArg` and invoked with three

@@ -29,3 +29,3 @@ var LazyWrapper = require('../internal/LazyWrapper'),

var interceptor = function(value) {
return (wrapped && wrapped.__dir__ < 0) ? value : value.reverse();
return value.reverse();
};

@@ -32,0 +32,0 @@ if (value instanceof LazyWrapper) {

@@ -13,5 +13,5 @@ var baseIndexOf = require('../internal/baseIndexOf'),

/**
* Checks if `value` is in `collection` using
* Checks if `target` is in `collection` using
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons. If `fromIndex` is negative, it is used as the offset
* for equality comparisons. If `fromIndex` is negative, it's used as the offset
* from the end of `collection`.

@@ -18,0 +18,0 @@ *

@@ -10,3 +10,3 @@ var baseEach = require('../internal/baseEach'),

* an array of the results of each invoked method. Any additional arguments
* are provided to each invoked method. If `methodName` is a function it is
* are provided to each invoked method. If `methodName` is a function it's
* invoked for, and `this` bound to, each element in `collection`.

@@ -13,0 +13,0 @@ *

@@ -9,3 +9,3 @@ /** Used as the `TypeError` message for "Functions" methods. */

* The opposite of `_.before`; this method creates a function that invokes
* `func` once it is called `n` or more times.
* `func` once it's called `n` or more times.
*

@@ -12,0 +12,0 @@ * @static

@@ -6,3 +6,3 @@ /** Used as the `TypeError` message for "Functions" methods. */

* Creates a function that invokes `func`, with the `this` binding and arguments
* of the created function, while it is called less than `n` times. Subsequent
* of the created function, while it's called less than `n` times. Subsequent
* calls to the created function return the result of the last `func` invocation.

@@ -9,0 +9,0 @@ *

@@ -35,3 +35,3 @@ var isObject = require('../lang/isObject'),

* @param {number} [options.maxWait] The maximum time `func` is allowed to be
* delayed before it is invoked.
* delayed before it's invoked.
* @param {boolean} [options.trailing=true] Specify invoking on the trailing

@@ -38,0 +38,0 @@ * edge of the timeout.

@@ -6,3 +6,3 @@ var baseDelay = require('../internal/baseDelay'),

* Defers invoking the `func` until the current call stack has cleared. Any
* additional arguments are provided to `func` when it is invoked.
* additional arguments are provided to `func` when it's invoked.
*

@@ -9,0 +9,0 @@ * @static

@@ -6,3 +6,3 @@ var baseDelay = require('../internal/baseDelay'),

* Invokes `func` after `wait` milliseconds. Any additional arguments are
* provided to `func` when it is invoked.
* provided to `func` when it's invoked.
*

@@ -9,0 +9,0 @@ * @static

@@ -11,3 +11,3 @@ /** Used as the `TypeError` message for "Functions" methods. */

*
* **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters).
* **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/Web/JavaScript/Reference/Functions/rest_parameters).
*

@@ -14,0 +14,0 @@ * @static

@@ -8,3 +8,3 @@ /** Used as the `TypeError` message for "Functions" methods. */

*
* **Note:** This method is based on the [spread operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator).
* **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator).
*

@@ -11,0 +11,0 @@ * @static

@@ -15,3 +15,3 @@ var baseIndexOf = require('./baseIndexOf'),

* @param {Function} [iteratee] The function invoked per iteration.
* @returns {Array} Returns the new duplicate-value-free array.
* @returns {Array} Returns the new duplicate free array.
*/

@@ -18,0 +18,0 @@ function baseUniq(array, iteratee) {

@@ -11,3 +11,3 @@ var realNames = require('./realNames');

function getFuncName(func) {
var result = func.name,
var result = (func.name + ''),
array = realNames[result],

@@ -14,0 +14,0 @@ length = array ? array.length : 0;

@@ -14,7 +14,8 @@ var LazyWrapper = require('./LazyWrapper'),

function isLaziable(func) {
var funcName = getFuncName(func);
if (!(funcName in LazyWrapper.prototype)) {
var funcName = getFuncName(func),
other = lodash[funcName];
if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
return false;
}
var other = lodash[funcName];
if (func === other) {

@@ -21,0 +22,0 @@ return true;

@@ -40,3 +40,3 @@ var baseWrapperValue = require('./baseWrapperValue'),

if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) {
return baseWrapperValue((isRight && isArr) ? array.reverse() : array, this.__actions__);
return baseWrapperValue(array, this.__actions__);
}

@@ -43,0 +43,0 @@ var result = [];

@@ -8,3 +8,3 @@ /**

* @param {Function} [iteratee] The function invoked per iteration.
* @returns {Array} Returns the new duplicate-value-free array.
* @returns {Array} Returns the new duplicate free array.
*/

@@ -11,0 +11,0 @@ function sortedUniq(array, iteratee) {

@@ -7,6 +7,6 @@ var baseClone = require('../internal/baseClone'),

* Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned,
* otherwise they are assigned by reference. If `customizer` is provided it is
* otherwise they are assigned by reference. If `customizer` is provided it's
* invoked to produce the cloned values. If `customizer` returns `undefined`
* cloning is handled by the method instead. The `customizer` is bound to
* `thisArg` and invoked with two argument; (value [, index|key, object]).
* `thisArg` and invoked with up to three argument; (value [, index|key, object]).
*

@@ -67,3 +67,3 @@ * **Note:** This method is loosely based on the

return typeof customizer == 'function'
? baseClone(value, isDeep, bindCallback(customizer, thisArg, 1))
? baseClone(value, isDeep, bindCallback(customizer, thisArg, 3))
: baseClone(value, isDeep);

@@ -70,0 +70,0 @@ }

@@ -5,6 +5,6 @@ var baseClone = require('../internal/baseClone'),

/**
* Creates a deep clone of `value`. If `customizer` is provided it is invoked
* Creates a deep clone of `value`. If `customizer` is provided it's invoked
* to produce the cloned values. If `customizer` returns `undefined` cloning
* is handled by the method instead. The `customizer` is bound to `thisArg`
* and invoked with two argument; (value [, index|key, object]).
* and invoked with up to three argument; (value [, index|key, object]).
*

@@ -52,3 +52,3 @@ * **Note:** This method is loosely based on the

return typeof customizer == 'function'
? baseClone(value, true, bindCallback(customizer, thisArg, 1))
? baseClone(value, true, bindCallback(customizer, thisArg, 3))
: baseClone(value, true);

@@ -55,0 +55,0 @@ }

@@ -10,3 +10,3 @@ var isArguments = require('./isArguments'),

/**
* Checks if `value` is empty. A value is considered empty unless it is an
* Checks if `value` is empty. A value is considered empty unless it's an
* `arguments` object, array, string, or jQuery-like collection with a length

@@ -13,0 +13,0 @@ * greater than `0` or an object with own enumerable properties.

@@ -6,6 +6,6 @@ var baseIsEqual = require('../internal/baseIsEqual'),

* Performs a deep comparison between two values to determine if they are
* equivalent. If `customizer` is provided it is invoked to compare values.
* equivalent. If `customizer` is provided it's invoked to compare values.
* If `customizer` returns `undefined` comparisons are handled by the method
* instead. The `customizer` is bound to `thisArg` and invoked with three
* arguments: (value, other [, index|key]).
* instead. The `customizer` is bound to `thisArg` and invoked with up to
* three arguments: (value, other [, index|key]).
*

@@ -12,0 +12,0 @@ * **Note:** This method supports comparing arrays, booleans, `Date` objects,

@@ -34,3 +34,3 @@ var isObject = require('./isObject');

// in older versions of Chrome and Safari which return 'function' for regexes
// and Safari 8 equivalents which return 'object' for typed array constructors.
// and Safari 8 which returns 'object' for typed array constructors.
return isObject(value) && objToString.call(value) == funcTag;

@@ -37,0 +37,0 @@ }

@@ -8,3 +8,3 @@ var baseIsMatch = require('../internal/baseIsMatch'),

* `object` contains equivalent property values. If `customizer` is provided
* it is invoked to compare values. If `customizer` returns `undefined`
* it's invoked to compare values. If `customizer` returns `undefined`
* comparisons are handled by the method instead. The `customizer` is bound

@@ -11,0 +11,0 @@ * to `thisArg` and invoked with three arguments: (value, other, index|key).

@@ -9,3 +9,3 @@ var createExtremum = require('../internal/createExtremum'),

* Gets the maximum value of `collection`. If `collection` is empty or falsey
* `-Infinity` is returned. If an iteratee function is provided it is invoked
* `-Infinity` is returned. If an iteratee function is provided it's invoked
* for each value in `collection` to generate the criterion by which the value

@@ -12,0 +12,0 @@ * is ranked. The `iteratee` is bound to `thisArg` and invoked with three

@@ -9,3 +9,3 @@ var createExtremum = require('../internal/createExtremum'),

* Gets the minimum value of `collection`. If `collection` is empty or falsey
* `Infinity` is returned. If an iteratee function is provided it is invoked
* `Infinity` is returned. If an iteratee function is provided it's invoked
* for each value in `collection` to generate the criterion by which the value

@@ -12,0 +12,0 @@ * is ranked. The `iteratee` is bound to `thisArg` and invoked with three

@@ -7,3 +7,3 @@ /* Native method references for those with the same name as other `lodash` methods. */

* Checks if `n` is between `start` and up to but not including, `end`. If
* `end` is not specified it is set to `start` with `start` then set to `0`.
* `end` is not specified it's set to `start` with `start` then set to `0`.
*

@@ -10,0 +10,0 @@ * @static

@@ -8,3 +8,3 @@ var assignWith = require('../internal/assignWith'),

* object. Subsequent sources overwrite property assignments of previous sources.
* If `customizer` is provided it is invoked to produce the assigned values.
* If `customizer` is provided it's invoked to produce the assigned values.
* The `customizer` is bound to `thisArg` and invoked with five arguments:

@@ -11,0 +11,0 @@ * (objectValue, sourceValue, key, object, source).

@@ -29,3 +29,3 @@ var baseGet = require('../internal/baseGet'),

function get(object, path, defaultValue) {
var result = object == null ? undefined : baseGet(object, toPath(path), path + '');
var result = object == null ? undefined : baseGet(object, toPath(path), (path + ''));
return result === undefined ? defaultValue : result;

@@ -32,0 +32,0 @@ }

@@ -8,3 +8,3 @@ var baseMerge = require('../internal/baseMerge'),

* overwrite property assignments of previous sources. If `customizer` is
* provided it is invoked to produce the merged values of the destination and
* provided it's invoked to produce the merged values of the destination and
* source properties. If `customizer` returns `undefined` merging is handled

@@ -11,0 +11,0 @@ * by the method instead. The `customizer` is bound to `thisArg` and invoked

@@ -10,3 +10,3 @@ var baseFlatten = require('../internal/baseFlatten'),

* names may be specified as individual arguments or as arrays of property
* names. If `predicate` is provided it is invoked for each property of `object`
* names. If `predicate` is provided it's invoked for each property of `object`
* picking the properties `predicate` returns truthy for. The predicate is

@@ -13,0 +13,0 @@ * bound to `thisArg` and invoked with three arguments: (value, key, object).

@@ -10,3 +10,3 @@ var baseGet = require('../internal/baseGet'),

* This method is like `_.get` except that if the resolved value is a function
* it is invoked with the `this` binding of its parent object and its result
* it's invoked with the `this` binding of its parent object and its result
* is returned.

@@ -13,0 +13,0 @@ *

@@ -8,3 +8,3 @@ var isIndex = require('../internal/isIndex'),

* Sets the property value of `path` on `object`. If a portion of `path`
* does not exist it is created.
* does not exist it's created.
*

@@ -11,0 +11,0 @@ * @static

{
"name": "lodash",
"version": "3.10.0",
"version": "3.10.1",
"description": "The modern build of lodash modular utilities.",

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

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

# lodash v3.10.0
# lodash v3.10.1

@@ -31,3 +31,3 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.

See the [package source](https://github.com/lodash/lodash/tree/3.10.0-npm) for more details.
See the [package source](https://github.com/lodash/lodash/tree/3.10.1-npm) for more details.

@@ -43,4 +43,4 @@ **Note:**<br>

* npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.10.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.10.0-amd) builds
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.10.0-es) build
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.10.1-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.10.1-amd) builds
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.10.1-es) build

@@ -122,3 +122,3 @@ ## Further Reading

Tested in Chrome 42-43, Firefox 37-38, IE 6-11, MS Edge, Opera 28-29, Safari 5-8, ChakraNode 0.12.2, io.js 2.3.1, Node.js 0.8.28, 0.10.38, & 0.12.5, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7.6.
Tested in Chrome 43-44, Firefox 38-39, IE 6-11, MS Edge, Safari 5-8, ChakraNode 0.12.2, io.js 2.5.0, Node.js 0.8.28, 0.10.40, & 0.12.7, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7.6.
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. Special thanks to [Sauce Labs](https://saucelabs.com/) for providing automated browser testing.

@@ -6,3 +6,3 @@ var isError = require('../lang/isError'),

* Attempts to invoke `func`, returning either the result or the caught error
* object. Any additional arguments are provided to `func` when it is invoked.
* object. Any additional arguments are provided to `func` when it's invoked.
*

@@ -9,0 +9,0 @@ * @static

@@ -26,3 +26,3 @@ var baseGet = require('../internal/baseGet'),

return function(path) {
return baseGet(object, toPath(path), path + '');
return baseGet(object, toPath(path), (path + ''));
};

@@ -29,0 +29,0 @@ }

@@ -9,3 +9,3 @@ var isIterateeCall = require('../internal/isIterateeCall');

* Creates an array of numbers (positive and/or negative) progressing from
* `start` up to, but not including, `end`. If `end` is not specified it is
* `start` up to, but not including, `end`. If `end` is not specified it's
* set to `start` with `start` then set to `0`. If `end` is less than `start`

@@ -12,0 +12,0 @@ * a zero-length range is created unless a negative `step` is specified.

Sorry, the diff of this file is too big to display

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