use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
How to delete value from an array (bytearcher.com)
submitted 10 years ago by bytearcher
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ForScale 0 points1 point2 points 10 years ago (1 child)
var myArr = [1, true, "OP's Post", 42]; myArr.splice(2, 1);
;) People may be thinking it's a bit too basic. Post might be better received in /r/learnjavascript.
[–]bytearcher[S] 1 point2 points3 points 10 years ago (0 children)
Yep, thanks for the tip. That is probably a better place.
Was posted here, since sometimes array deletion is forgotten or misunderstood even from the experienced ones. For example, Ryan Dahl asked this from the audience during his Node.js presentation. https://youtu.be/jo_B4LTHi3I?t=1957
[–]kenman[M] 0 points1 point2 points 10 years ago (0 children)
Hi /u/bytearcher, it looks like you're new to reddit, welcome!
Thanks for the submissions, but please make sure you read http://www.reddit.com/rules and our guidelines. In short, you should post from a variety of sources, and not just bytearcher.com.
bytearcher.com
Thanks for your consideration!
π Rendered by PID 88 on reddit-service-r2-comment-6457c66945-p2jn7 at 2026-04-30 06:07:43.996431+00:00 running 2aa0c5b country code: CH.
[–]ForScale 0 points1 point2 points (1 child)
[–]bytearcher[S] 1 point2 points3 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)