Convert for loop + IIFE to map, see https://github.com/phetsims/vegas/issues/82
Convert for loop + IIFE to map, see https://github.com/phetsims/vegas/issues/82

phetsims/vegas,phetsims/vegas,phetsims/vegas