function lookup(obj, type, lookupValue) {
        var result = [];
        traverse(obj).map(function (x) {

          if (kindof(x) === 'object') {