Replace _.isObject

This commit is contained in:
Sashko Stubailo
2017-11-10 11:28:50 -08:00
committed by Ben Newman
parent 2f10c82a50
commit f40dac844d

View File

@@ -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;