mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Add _.keys test for string objects.
This commit is contained in:
@@ -5134,6 +5134,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
test('should work with string objects (test in IE < 9)', 1, function() {
|
||||
deepEqual(_.keys(Object('abc')), ['0', '1', '2']);
|
||||
});
|
||||
|
||||
test('fixes the JScript [[DontEnum]] bug (test in IE < 9)', 2, function() {
|
||||
function Foo() {}
|
||||
Foo.prototype.a = 1;
|
||||
|
||||
Reference in New Issue
Block a user