Javascript Deleting Items From An Array Causes Uncaught Typeerror

Javascript Deleting Items From An Array Causes Uncaught Typeerror