fwiw, most folks would just use Lodash[0]:
import times from 'lodash.times'
[0] https://lodash.com/docs/4.17.15#times import times from 'lodash.times'
[0] https://lodash.com/docs/4.17.15#times