• + 0 comments
    function getCount(objects) {
        let count = 0;
        for (const {x, y} of objects) {
            if (x === y) count++;
        }
        return count;
    }