mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Ensure callback shorthands work with _.uniq. [\ht @jden, @motowilliams]
Former-commit-id: d9a0e688414edc4167b5f8e9ca123bab587f8264
This commit is contained in:
4
dist/lodash.underscore.js
vendored
4
dist/lodash.underscore.js
vendored
@@ -3175,12 +3175,12 @@
|
||||
result = [],
|
||||
seen = result;
|
||||
|
||||
if (typeof isSorted == 'function') {
|
||||
if (typeof isSorted != 'boolean' && isSorted != null) {
|
||||
thisArg = callback;
|
||||
callback = isSorted;
|
||||
isSorted = false;
|
||||
}
|
||||
if (callback) {
|
||||
if (callback != null) {
|
||||
seen = [];
|
||||
callback = createCallback(callback, thisArg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user