So you never get the value. ?\d+)/g) || [] That || [] is for no matches: it gives an empty array rather than null. lodash get nested property, I am new to javascript. Why does lodash `_.all([true, true, true], true);` return `false`? success(function(data) { $scope.news=data }). Possible replacements: select = map or filter, any = some, where = filter) findDeep returns an object with some information to the found item (just some values, see the docs for more details): value is the object found; key that's the index in the nested array; parent the parent of the value It works, but is most likely very verbose. See comments inline in the code. Fiddle... Let suppose on button click you are calling ajax method