let threeSpaces = 'a b';
threeSpaces = threeSpaces.replace(/\s\s+/g, ' ');
const result = threeSpaces.split(' ');
console.log(result);
CLICK HERE to find out more related problems solutions.
let threeSpaces = 'a b';
threeSpaces = threeSpaces.replace(/\s\s+/g, ' ');
const result = threeSpaces.split(' ');
console.log(result);
CLICK HERE to find out more related problems solutions.