I just heard about the JavaScript methods freeze and seal, which can be used to make any Object immutable. Here’s a short example how to use it: var o1...
I would like to get the keys of a JavaScript object as an array, either in jQuery or pure JavaScript. Is there a less verbose way than this? var...
This question already has answers here: Short circuit Array.forEach like calling break (30 answers) Closed 4 years ago. I’m playing with Node.js and Mongoose — trying to find specific...
NOTE: This question was asked from the viewpoint of ECMAScript version 3 or 5. The answers might become outdated with the introduction of new features in the release of...