mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** Used to check objects for own properties. */
|
||||
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
const hasOwnProperty = Object.prototype.hasOwnProperty
|
||||
|
||||
/**
|
||||
* Initializes an array clone.
|
||||
@@ -9,15 +9,15 @@ const hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
* @returns {Array} Returns the initialized clone.
|
||||
*/
|
||||
function initCloneArray(array) {
|
||||
const length = array.length;
|
||||
const result = array.constructor(length);
|
||||
const length = array.length
|
||||
const result = array.constructor(length)
|
||||
|
||||
// Add properties assigned by `RegExp#exec`.
|
||||
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
||||
result.index = array.index;
|
||||
result.input = array.input;
|
||||
result.index = array.index
|
||||
result.input = array.input
|
||||
}
|
||||
return result;
|
||||
return result
|
||||
}
|
||||
|
||||
export default initCloneArray;
|
||||
export default initCloneArray
|
||||
|
||||
Reference in New Issue
Block a user