Sorry but bad article. It resolves with a “range()” function and then uses for-of to call it: that’s not functional programming.
Then every for-of loop example does not execute anything because it’s creating an inline arrow function without calling it.