How to get all combination of a group array in Javascript [closed]

I got an array like [1, 2, 3, …, 10]

I want to get their 3 digits combination like [1,2,3],[,1,2,4],[1,2,5]….

I read some similar question others ask previously but I can’t understand some of the function they use, If can please also explain a bit the code you write and as simple as possible. Thanks you 🙂