mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-15 05:07:49 +00:00
_.size ludicrous speed improvement - formatting
This commit is contained in:
@@ -311,7 +311,7 @@
|
||||
_.size = function(obj) {
|
||||
if (_.isArray(obj)) {
|
||||
return obj.length;
|
||||
} else {
|
||||
}else{
|
||||
return _.keys(obj).length;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user