Peta dan dapatkan anak terakhir

map and get last child in js row.map((rank, i, arr) => {
    if (arr.length - 1 === i) {
        // last one
    } else {
        // not last one
    }
});
Homely Hoopoe