(list, limit)
| 359 | } |
| 360 | |
| 361 | function trimArray(list, limit) { |
| 362 | while (list.length > limit) { |
| 363 | list.shift() |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | function upsertRecord(list, entry, idKey = 'id') { |
| 368 | const id = entry[idKey] |
no outgoing calls
no test coverage detected