with this package you can generate All possible numbers with specific length
Install the library with npm install possible-numbers
var all_possible_nums = require('possible-numbers');
let allCombitions = all_possible_nums({
"one": [1],
"two": [1, 2, 3, 4, 5, 6, 7, 8, 9],
"three": [1]
})
console.log(allCombitions) //=> [
// 111, 121, 131,
// 141, 151, 161,
// 171, 181, 191
// ]
import all_possible_nums from "possible-numbers";
- alireza kargar - alireza kargar (author)