aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/test/helpers/each.js
blob: 7ade6b3081605960a4ccc218a040bc8fc84223e7 (plain) (blame)
1
2
3
4
5
6
7
8
function each(array, callback) {
    var i;
    for (i = 0; i < array.length; i++) {
        callback(array[i], i, array);
    }
}

export default each;