mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
Remove the _.isEqual dependency from createCallback in the underscore build and avoid potentially unnecessary string coercion in the underscore build _.isEqual method.
Former-commit-id: 1e8ce4fd9a35ad36c2b24457e519cb587c49c93b
This commit is contained in:
3
build.js
3
build.js
@@ -1731,6 +1731,7 @@
|
||||
}
|
||||
if (isUnderscore) {
|
||||
dependencyMap.contains = _.without(dependencyMap.contains, 'isString');
|
||||
dependencyMap.createCallback = _.without(dependencyMap.createCallback, 'isEqual');
|
||||
dependencyMap.flatten = _.without(dependencyMap.flatten, 'createCallback');
|
||||
dependencyMap.isEmpty = ['isArray', 'isString'];
|
||||
dependencyMap.isEqual = _.without(dependencyMap.isEqual, 'forIn', 'isArguments');
|
||||
@@ -2107,7 +2108,7 @@
|
||||
'',
|
||||
' case regexpClass:',
|
||||
' case stringClass:',
|
||||
" return a == b + '';",
|
||||
' return a == String(b);',
|
||||
' }',
|
||||
' var isArr = className == arrayClass;',
|
||||
' if (!isArr) {',
|
||||
|
||||
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -1037,7 +1037,7 @@
|
||||
|
||||
case regexpClass:
|
||||
case stringClass:
|
||||
return a == b + '';
|
||||
return a == String(b);
|
||||
}
|
||||
var isArr = className == arrayClass;
|
||||
if (!isArr) {
|
||||
|
||||
Reference in New Issue
Block a user