Edit & Run »
The splice() methods can be used to remove array elements.
Try it