mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
improve #isEmpty implementation. add 2 tests
This commit is contained in:
@@ -60,6 +60,8 @@ $(document).ready(function() {
|
||||
ok(_.isEmpty([]), '[] is empty');
|
||||
ok(!_.isEmpty({one : 1}), '{one : 1} is not empty');
|
||||
ok(_.isEmpty({}), '{} is empty');
|
||||
ok(_.isEmpty(null), 'null is empty');
|
||||
ok(_.isEmpty(), 'undefined is empty');
|
||||
|
||||
var obj = {one : 1};
|
||||
delete obj.one;
|
||||
|
||||
Reference in New Issue
Block a user