Skip to content

Commit 8dfbde8

Browse files
committed
Use _.fill for updating array
1 parent 59a9f00 commit 8dfbde8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/terminal.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class Terminal {
103103

104104
clearBelow(){
105105
const { lines, pointerLine } = this.state;
106-
for(let ix = pointerLine+1; ix < lines.length; ix++){
107-
lines[ix] = '';
108-
}
106+
_.fill(lines, '', pointerLine + 1, lines.length);
109107
}
110108

111109
tab(){

0 commit comments

Comments
 (0)