mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Fix tests in phantomjs.
This commit is contained in:
committed by
jdalton
parent
cd69a53406
commit
edffe2a6fc
@@ -4039,9 +4039,7 @@
|
||||
* @returns {Object} Returns the converted object.
|
||||
*/
|
||||
function arrayToObject(array) {
|
||||
var result = { 'length': 0 };
|
||||
push.apply(result, array);
|
||||
return result;
|
||||
return arrayCopy(array, { 'length': array.length });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user