(list, name)
| 5 | |
| 6 | // Returns an array of the modes for the locks with matching name. |
| 7 | function modes(list, name) { |
| 8 | return list.filter(item => item.name === name).map(item => item.mode); |
| 9 | } |
| 10 | // Returns an array of the clientIds for the locks with matching name. |
| 11 | function clients(list, name) { |
| 12 | return list.filter(item => item.name === name).map(item => item.clientId); |
no test coverage detected