use splice instead of filter
use splice instead of filter

xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js