Having googled for it I found two solutions:
Further refinement, produces an array with value starting from 1:
Array.from(Array(10).keys(), n => n + 1)