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