мощь ES6 + lodash в действии
let _ = require('lodash');
let search = (o, k) => _.has(o, k) ? [o] : _.flatten(_.map(o, (v) =>_.isObject(v) ? search(v, k) : []));
let _ = require('lodash');
let search = (o, k) => _.has(o, k) ? [o] : _.flatten(_.map(o, (v) =>_.isObject(v) ? search(v, k) : []));