function closeInfoWindows(infoWindow, infoWindow2) {
if (infoWindow) {
infoWindow.close();
}
if (infoWindow2) {
infoWindow2.close();
}
}
function closeInfoWindows() {
for (var i = 0; i < arguments.length; i++) {
var window = arguments[i];
if (window) {
window.close();
}
}
}
const closeInfoWindows = (...windows) => windows.forEach(w => w && w.close());