Comparing version 3.3.0 to 3.3.1
@@ -40,3 +40,3 @@ import baseCallback from '../internal/baseCallback'; | ||
* // using the `_.matches` callback shorthand | ||
* _.findLastIndex(users, { user': 'barney', 'active': true }); | ||
* _.findLastIndex(users, { 'user': 'barney', 'active': true }); | ||
* // => 0 | ||
@@ -43,0 +43,0 @@ * |
@@ -29,3 +29,3 @@ import baseIndexOf from '../internal/baseIndexOf'; | ||
* _.indexOf([1, 2, 1, 2], 2); | ||
* // => 2 | ||
* // => 1 | ||
* | ||
@@ -32,0 +32,0 @@ * // using `fromIndex` |
@@ -37,3 +37,3 @@ import baseIndexOf from '../internal/baseIndexOf'; | ||
args.push(value); | ||
caches.push(isCommon && value.length >= 120 && createCache(argsIndex && value)); | ||
caches.push((isCommon && value.length >= 120) ? createCache(argsIndex && value) : null); | ||
} | ||
@@ -40,0 +40,0 @@ } |
@@ -44,3 +44,3 @@ import arraySome from '../internal/arraySome'; | ||
* // using the `_.matches` callback shorthand | ||
* _.some(users, { user': 'barney', 'active': false }); | ||
* _.some(users, { 'user': 'barney', 'active': false }); | ||
* // => false | ||
@@ -47,0 +47,0 @@ * |
@@ -29,3 +29,3 @@ import isObject from '../lang/isObject'; | ||
* @param {Function} func The function to debounce. | ||
* @param {number} wait The number of milliseconds to delay. | ||
* @param {number} [wait=0] The number of milliseconds to delay. | ||
* @param {Object} [options] The options object. | ||
@@ -88,3 +88,3 @@ * @param {boolean} [options.leading=false] Specify invoking on the leading | ||
} | ||
wait = wait < 0 ? 0 : wait; | ||
wait = wait < 0 ? 0 : (+wait || 0); | ||
if (options === true) { | ||
@@ -91,0 +91,0 @@ var leading = true; |
@@ -33,3 +33,3 @@ import debounce from './debounce'; | ||
* @param {Function} func The function to throttle. | ||
* @param {number} wait The number of milliseconds to throttle invocations to. | ||
* @param {number} [wait=0] The number of milliseconds to throttle invocations to. | ||
* @param {Object} [options] The options object. | ||
@@ -36,0 +36,0 @@ * @param {boolean} [options.leading=true] Specify invoking on the leading |
@@ -24,3 +24,3 @@ import baseIndexOf from './baseIndexOf'; | ||
isCommon = true, | ||
cache = isCommon && values.length >= 200 && createCache(values), | ||
cache = (isCommon && values.length >= 200) ? createCache(values) : null, | ||
valuesLength = values.length; | ||
@@ -27,0 +27,0 @@ |
@@ -20,3 +20,3 @@ import baseIndexOf from './baseIndexOf'; | ||
isLarge = isCommon && length >= 200, | ||
seen = isLarge && createCache(), | ||
seen = isLarge ? createCache() : null, | ||
result = []; | ||
@@ -23,0 +23,0 @@ |
@@ -25,6 +25,9 @@ import isIndex from './isIndex'; | ||
} | ||
var other = object[index]; | ||
return prereq && (value === value ? value === other : other !== other); | ||
if (prereq) { | ||
var other = object[index]; | ||
return value === value ? value === other : other !== other; | ||
} | ||
return false; | ||
} | ||
export default isIterateeCall; |
/** | ||
* @license | ||
* lodash 3.3.0 (Custom Build) <https://lodash.com/> | ||
* lodash 3.3.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize modern exports="es" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> | ||
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
@@ -41,3 +41,3 @@ * Available under MIT license <https://lodash.com/license> | ||
/** Used as the semantic version number. */ | ||
var VERSION = '3.3.0'; | ||
var VERSION = '3.3.1'; | ||
@@ -324,11 +324,9 @@ /** Used to indicate the type of lazy iteratees. */ | ||
arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) { | ||
var isFilter = index == LAZY_FILTER_FLAG, | ||
isWhile = index == LAZY_WHILE_FLAG; | ||
var isFilter = index == LAZY_FILTER_FLAG || index == LAZY_WHILE_FLAG; | ||
LazyWrapper.prototype[methodName] = function(iteratee, thisArg) { | ||
var result = this.clone(), | ||
filtered = result.__filtered__, | ||
iteratees = result.__iteratees__ || (result.__iteratees__ = []); | ||
result.__filtered__ = filtered || isFilter || (isWhile && result.__dir__ < 0); | ||
result.__filtered__ = result.__filtered__ || isFilter; | ||
iteratees.push({ 'iteratee': baseCallback(iteratee, thisArg, 3), 'type': index }); | ||
@@ -400,5 +398,10 @@ return result; | ||
LazyWrapper.prototype.dropWhile = function(predicate, thisArg) { | ||
var done; | ||
var done, | ||
lastIndex, | ||
isRight = this.__dir__ < 0; | ||
predicate = baseCallback(predicate, thisArg, 3); | ||
return this.filter(function(value, index, array) { | ||
done = done && (isRight ? index < lastIndex : index > lastIndex); | ||
lastIndex = index; | ||
return done || (done = !predicate(value, index, array)); | ||
@@ -405,0 +408,0 @@ }); |
{ | ||
"name": "lodash-es", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "The modern build of lodash exported as ES modules.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/custom-builds", |
@@ -1,2 +0,2 @@ | ||
# lodash-es v3.3.0 | ||
# lodash-es v3.3.1 | ||
@@ -10,2 +10,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [ES](https://people.mozilla.org/~jorendorff/es6-draft.html) modules. | ||
See the [package source](https://github.com/lodash/lodash/tree/3.3.0-es) for more details. | ||
See the [package source](https://github.com/lodash/lodash/tree/3.3.1-es) for more details. |
@@ -114,6 +114,6 @@ import assignOwnDefaults from '../internal/assignOwnDefaults'; | ||
* // => function(data) { | ||
* var __t, __p = ''; | ||
* __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!'; | ||
* return __p; | ||
* } | ||
* // var __t, __p = ''; | ||
* // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!'; | ||
* // return __p; | ||
* // } | ||
* | ||
@@ -120,0 +120,0 @@ * // using the `source` property to inline compiled templates for meaningful |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
410175
12478