Archive for the ‘array methods’ Category

Quick Tip: How to Sort an Array of Objects in JavaScript

Posted on: No Comments
If you have an array of objects that you need to sort into a certain order, the temptation might be to reach for a JavaScript library. Before you do however, rember that you can do some pretty neat sorting with the native Array.sort function. In this...

Filtering and Chaining in Functional JavaScript

Posted on: No Comments
One of the things I appreciate about JavaScript is its versatility. JavaScript gives you the opportunity to use object oriented programming, imperative programming, and even functional programming. And you can go back and forth among them depending on ...

Using Map and Reduce in Functional JavaScript

Posted on: No Comments
This article was peer reviewed by Panayiotis Velisarakos, Tim Severien and Dan Prince. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! With all the talk about workflows that support the amazing new feature...

Quick Tip: How to Create and Manipulate Arrays in JavaScript

Posted on: No Comments
This article was peer reviewed by Chris Perry and Marcello La Rocca. Thanks to all of SitePoint's peer reviewers for making SitePoint content the best it can be! The length property of Array objects is one that many who are relatively new to JavaScript...

Getting Started with Underscore.js

Posted on: No Comments
This article was peer reviewed by Agbonghama Collins and Ryan Chenkie. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Underscore.js is a JavaScript library, written by Jeremy Ashkenas, that provides funct...

Lose the jQuery Bloat ­— DOM Manipulation with NodeList.js

Posted on: No Comments
In recent years, jQuery has become the de-facto JavaScript library on the web. It irons out many cross-browser inconsistencies and adds a welcome layer of syntactic sugar to client-side scripting. One of the main pain points it abstracts away is DOM m...