I need to find a key that contains an object in a. It should not return me a key that contains array or string . For example in a it should return me d but not b or c
a = {"b" : "hi","c":[1,2,3],"d":{"2:":3}};
Here is the snipped I tried. It returns me first instance of Object. But I dont need Array instance just a dict.
var _ = require(underscore);
_.findKey(a,_.isObject);
_.isObjectwon't work for this, because arrays are objects.