mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v3.10.1.
This commit is contained in:
@@ -10,7 +10,7 @@ define(['./baseIndexOf', './cacheIndexOf', './createCache'], function(baseIndexO
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @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.
|
||||
*/
|
||||
function baseUniq(array, iteratee) {
|
||||
var index = -1,
|
||||
|
||||
@@ -8,7 +8,7 @@ define(['./realNames'], function(realNames) {
|
||||
* @returns {string} Returns the function name.
|
||||
*/
|
||||
function getFuncName(func) {
|
||||
var result = func.name,
|
||||
var result = (func.name + ''),
|
||||
array = realNames[result],
|
||||
length = array ? array.length : 0;
|
||||
|
||||
|
||||
@@ -8,11 +8,12 @@ define(['./LazyWrapper', './getData', './getFuncName', '../chain/lodash'], funct
|
||||
* @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
|
||||
*/
|
||||
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) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ define(['./baseWrapperValue', './getView', '../lang/isArray'], function(baseWrap
|
||||
takeCount = nativeMin(length, this.__takeCount__);
|
||||
|
||||
if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) {
|
||||
return baseWrapperValue((isRight && isArr) ? array.reverse() : array, this.__actions__);
|
||||
return baseWrapperValue(array, this.__actions__);
|
||||
}
|
||||
var result = [];
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ define([], function() {
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @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.
|
||||
*/
|
||||
function sortedUniq(array, iteratee) {
|
||||
var seen,
|
||||
|
||||
Reference in New Issue
Block a user