This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple utility function to resize an array after elements have been removed. | |
* | |
* @param arr | |
* The array to resize. | |
* @returns {Array} | |
*/ | |
var resizeArray = function(arr) { | |
if (!(arr instanceof Array)) { | |
return []; |