Phaser3 Equivalent fo Phaser2's parseList

What is the equivalent of this example in phaser 3.

Any help would be appreciated. I want to do this using parseList, I think alternatively I can do a for loop but it’s not as clean as this.