I got this from google fonts api so if you put a request for a font you want many weights you could basically ask for 400..900. That would basically give you every font weight from 400 to 900 or one had to write 400,500,600,700,800,900.

I want to use that same logic, it can be done using splitting that and running through a filtering loop. I want to know if there is a better way to do this. That can be more useful and native. I don't want to split them. I am curious of a better solution.

```js
let a = '400..900';
a = a.split('..');
let b = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000].filter((x) => (x >= a[0] && x <= a[1]))
console.log(a,b);
// 400,500,600,700,800,900
```