mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Fixed _.keys in Safari 5.0.5.
This commit is contained in:
@@ -6954,8 +6954,9 @@
|
|||||||
var Ctor = object && object.constructor,
|
var Ctor = object && object.constructor,
|
||||||
length = object ? object.length : 0;
|
length = object ? object.length : 0;
|
||||||
|
|
||||||
if ((typeof length == 'number' && length > 0) ||
|
if ((Ctor && object === Ctor.prototype) ||
|
||||||
(Ctor && object === Ctor.prototype)) {
|
(typeof length == 'number' && length > 0) ||
|
||||||
|
(support.enumPrototypes && typeof object == 'function')) {
|
||||||
return shimKeys(object);
|
return shimKeys(object);
|
||||||
}
|
}
|
||||||
return isObject(object) ? nativeKeys(object) : [];
|
return isObject(object) ? nativeKeys(object) : [];
|
||||||
|
|||||||
Reference in New Issue
Block a user