I have this structure :

```
var entities = {
  1: {'name': 'Fred', 'age': 35},
  2: {'name': 'Hans', 'age': 47},
  3: {'name': 'Bert', 'age': 27}
}

```

I need something like :

```
var ids = entities.filter( p => p.age > 30);

```

which should return an array :

```
[1, 2]

```

Is there a convenient way to do this ? e.g. Lodash, etc ?