Ruby Remove Element From Array Javascript Gfg