DieterHolvoet
1/15/2016 - 1:23 PM

Compare the array lengths of an unlimited amount of arrays at the same time

Compare the array lengths of an unlimited amount of arrays at the same time

Array.compareLengths = function() {
    for(var i = 1; i < arguments.length; i++) {
        if (arguments[0].length != arguments[i].length) {
            return false;
        }
    }
    return true;
};