I have this array

```
array = [{name:name,score:2},{name:name2,score:2},{name:name3,score:3},{name:name4,score:4},{name:name5,score:4}]

```

Please help me to get any highest and lowest occurence(score) of this array.

Highest
-------

```
highestoccurence = [{name:name4,score:4},{name:name5,score:4}]

lowestoccurence = [{name:name,score:2},{name:name2,score:2}]

```

Thanks