- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
The function is also incorrectly named, because, in essence, it merges the "new" object into the "old" object. (It fails to clear the old object before adding the values from the new object to it.)
Edit Admin
If you're going to re-invent the wheel, shouldn't you make one that's substantially better, not substantially worse?
I mean, judging by this website, people tend to do the latter, but still...
Edit Admin
To be fair, non functional style methos that mutate their single argument often return the instance. By returning the instance rather than void, the caller can chain method calls. It isn't fair to assume they meant to mimic functional programming.
Edit Admin
Like the built-in
Array.sort.