Method
applyLimit
(array: any[])
Source from the content-addressed store, hash-verified
| 141 | } |
| 142 | |
| 143 | applyLimit(array: any[]) { |
| 144 | if (this.limit === null) { |
| 145 | return; |
| 146 | } |
| 147 | while (array.length > this.limit) { |
| 148 | array.pop(); |
| 149 | } |
| 150 | } |
| 151 | } |