Skip to content

Instantly share code, notes, and snippets.

View Wlada's full-sized avatar
🎯
Focusing

Vladimir Wlada

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am wlada on github.
  • I am wlada (https://keybase.io/wlada) on keybase.
  • I have a public key ASAWMa4njScxE7sow6jYtqSjRtQI2fu1n4QVWp1HILUyrwo

To claim this, I am signing this object:

@Wlada
Wlada / deep-filter.js
Last active January 31, 2017 17:14
Angular filter for filtering objects and nested objects by one property
app
.filter('deepFilter', function() {
return function(items, value, prop) {
if (!angular.isDefined(value) || value === '' || !angular.isDefined(prop) || prop === '') {
return items;
}
return items.filter(function(item) {
if (checkProp(item)) {