The clear() method of the Map object removes all of the key/value pairs from it.

    
    const things = new Map([
        ['foo','bar'],
        [1, 'apples'],
        ['mayor', true]
    ]);

    things.clear();

    console.log(things.size);
    // 0