mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Tweak whitespace in iteratorTemplate.
Former-commit-id: 2f9fdbd72d316a1668d34fa95a3f1ecb325d625b
This commit is contained in:
@@ -512,10 +512,10 @@
|
|||||||
// exit early if the first argument is falsey
|
// exit early if the first argument is falsey
|
||||||
'if (!iterable) return result;\n' +
|
'if (!iterable) return result;\n' +
|
||||||
// add code before the iteration branches
|
// add code before the iteration branches
|
||||||
'<%= top %>;\n' +
|
'<%= top %>;' +
|
||||||
|
|
||||||
// array-like iteration:
|
// array-like iteration:
|
||||||
'<% if (arrays) { %>' +
|
'<% if (arrays) { %>\n' +
|
||||||
'var length = iterable.length; index = -1;\n' +
|
'var length = iterable.length; index = -1;\n' +
|
||||||
'if (<%= arrays %>) {' +
|
'if (<%= arrays %>) {' +
|
||||||
|
|
||||||
@@ -535,7 +535,7 @@
|
|||||||
|
|
||||||
// object iteration:
|
// object iteration:
|
||||||
// add support for iterating over `arguments` objects if needed
|
// add support for iterating over `arguments` objects if needed
|
||||||
' <% } else if (support.nonEnumArgs) { %>\n' +
|
' <% } else if (support.nonEnumArgs) { %>\n' +
|
||||||
' var length = iterable.length; index = -1;\n' +
|
' var length = iterable.length; index = -1;\n' +
|
||||||
' if (length && isArguments(iterable)) {\n' +
|
' if (length && isArguments(iterable)) {\n' +
|
||||||
' while (++index < length) {\n' +
|
' while (++index < length) {\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user