The size property of the Map object returns the number of elements in it.

    
    const numbers = new Map([
        [1, 2],
        [2, 3],
        [4, 5]
    ]);

    const numbersSize = numbers.size;

    console.log(numbersSize);
    // 3