mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Replace _.isObject
This commit is contained in:
committed by
Ben Newman
parent
2f10c82a50
commit
f40dac844d
@@ -368,9 +368,9 @@ var testSubtree = function (value, pattern) {
|
||||
});
|
||||
|
||||
//XXX: replace with underscore's _.allKeys if Meteor updates underscore to 1.8+ (or lodash)
|
||||
var allKeys = function(obj){
|
||||
function allKeys(obj) {
|
||||
var keys = [];
|
||||
if (_.isObject(obj)){
|
||||
if (obj) {
|
||||
for (var key in obj) keys.push(key);
|
||||
}
|
||||
return keys;
|
||||
|
||||
Reference in New Issue
Block a user