mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove useUnderscoreClone check from the underscore build _.toArray replacement.
Former-commit-id: 62777dbc108689aa7bd0e258e64341aad8fa6cb3
This commit is contained in:
2
build.js
2
build.js
@@ -2323,7 +2323,6 @@
|
|||||||
].join('\n'));
|
].join('\n'));
|
||||||
|
|
||||||
// replace `_.toArray`
|
// replace `_.toArray`
|
||||||
if (useUnderscoreClone) {
|
|
||||||
source = replaceFunction(source, 'toArray', [
|
source = replaceFunction(source, 'toArray', [
|
||||||
'function toArray(collection) {',
|
'function toArray(collection) {',
|
||||||
' if (isArray(collection)) {',
|
' if (isArray(collection)) {',
|
||||||
@@ -2335,7 +2334,6 @@
|
|||||||
' return values(collection);',
|
' return values(collection);',
|
||||||
'}'
|
'}'
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
}
|
|
||||||
|
|
||||||
// replace `_.uniq`
|
// replace `_.uniq`
|
||||||
source = replaceFunction(source, 'uniq', [
|
source = replaceFunction(source, 'uniq', [
|
||||||
|
|||||||
Reference in New Issue
Block a user