mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Add missing semicolons. [ci skip]
Former-commit-id: 7c9c39e84600f41d1a4f94224dfe5b2be8791d20
This commit is contained in:
10
build.js
10
build.js
@@ -1910,7 +1910,7 @@
|
|||||||
" if (typeof length == 'number') {",
|
" if (typeof length == 'number') {",
|
||||||
' var result = Array(length);',
|
' var result = Array(length);',
|
||||||
' while (++index < length) {',
|
' while (++index < length) {',
|
||||||
' result[index] = collection[index][property]',
|
' result[index] = collection[index][property];',
|
||||||
' }',
|
' }',
|
||||||
' }',
|
' }',
|
||||||
' return result || map(collection, property);',
|
' return result || map(collection, property);',
|
||||||
@@ -1980,7 +1980,7 @@
|
|||||||
'function clone(value) {',
|
'function clone(value) {',
|
||||||
' return isObject(value)',
|
' return isObject(value)',
|
||||||
' ? (isArray(value) ? slice(value) : assign({}, value))',
|
' ? (isArray(value) ? slice(value) : assign({}, value))',
|
||||||
' : value',
|
' : value;',
|
||||||
'}'
|
'}'
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
}
|
}
|
||||||
@@ -2030,7 +2030,7 @@
|
|||||||
' result = [];',
|
' result = [];',
|
||||||
'',
|
'',
|
||||||
' while (++index < length) {',
|
' while (++index < length) {',
|
||||||
' var value = array[index]',
|
' var value = array[index];',
|
||||||
' if (indexOf(flattened, value, length) < 0) {',
|
' if (indexOf(flattened, value, length) < 0) {',
|
||||||
' result.push(value);',
|
' result.push(value);',
|
||||||
' }',
|
' }',
|
||||||
@@ -2208,7 +2208,7 @@
|
|||||||
'function lodash(value) {',
|
'function lodash(value) {',
|
||||||
' return (value instanceof lodash)',
|
' return (value instanceof lodash)',
|
||||||
' ? value',
|
' ? value',
|
||||||
' : new lodashWrapper(value)',
|
' : new lodashWrapper(value);',
|
||||||
'}'
|
'}'
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
|
|
||||||
@@ -2397,7 +2397,7 @@
|
|||||||
' result = [];',
|
' result = [];',
|
||||||
'',
|
'',
|
||||||
' while (++index < length) {',
|
' while (++index < length) {',
|
||||||
' var value = array[index]',
|
' var value = array[index];',
|
||||||
' if (indexOf(arguments, value, 1) < 0) {',
|
' if (indexOf(arguments, value, 1) < 0) {',
|
||||||
' result.push(value);',
|
' result.push(value);',
|
||||||
' }',
|
' }',
|
||||||
|
|||||||
2
dist/lodash.js
vendored
2
dist/lodash.js
vendored
@@ -2662,7 +2662,7 @@
|
|||||||
if (typeof length == 'number') {
|
if (typeof length == 'number') {
|
||||||
var result = Array(length);
|
var result = Array(length);
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
result[index] = collection[index][property]
|
result[index] = collection[index][property];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result || map(collection, property);
|
return result || map(collection, property);
|
||||||
|
|||||||
10
dist/lodash.underscore.js
vendored
10
dist/lodash.underscore.js
vendored
@@ -180,7 +180,7 @@
|
|||||||
function lodash(value) {
|
function lodash(value) {
|
||||||
return (value instanceof lodash)
|
return (value instanceof lodash)
|
||||||
? value
|
? value
|
||||||
: new lodashWrapper(value)
|
: new lodashWrapper(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -632,7 +632,7 @@
|
|||||||
function clone(value) {
|
function clone(value) {
|
||||||
return isObject(value)
|
return isObject(value)
|
||||||
? (isArray(value) ? slice.call(value) : assign({}, value))
|
? (isArray(value) ? slice.call(value) : assign({}, value))
|
||||||
: value
|
: value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1994,7 +1994,7 @@
|
|||||||
if (typeof length == 'number') {
|
if (typeof length == 'number') {
|
||||||
var result = Array(length);
|
var result = Array(length);
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
result[index] = collection[index][property]
|
result[index] = collection[index][property];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result || map(collection, property);
|
return result || map(collection, property);
|
||||||
@@ -2416,7 +2416,7 @@
|
|||||||
result = [];
|
result = [];
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
var value = array[index]
|
var value = array[index];
|
||||||
if (indexOf(flattened, value, length) < 0) {
|
if (indexOf(flattened, value, length) < 0) {
|
||||||
result.push(value);
|
result.push(value);
|
||||||
}
|
}
|
||||||
@@ -3128,7 +3128,7 @@
|
|||||||
result = [];
|
result = [];
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
var value = array[index]
|
var value = array[index];
|
||||||
if (indexOf(arguments, value, 1) < 0) {
|
if (indexOf(arguments, value, 1) < 0) {
|
||||||
result.push(value);
|
result.push(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user