Remove Element from JavaScript Array


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. array_name.splice(array_name.indexOf(item_to_remove), 1);

URL: http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.