• + 1 comment

    is this best practice?

    function getCount(objects) {
    return objects.filter((object) => object.x === object.y).length 
    }