I have an array of elements where the entries are sparse. How can I easily condense the sparse array into a dense array so that I don\'t have to keep checking for null and
If you want to include underscore.js in your code, you can use the compact function on your array.