Get the factors of a number
import { number } from "@rjweb/utils"number.factors(5) // [1, 5]number.factors(10) // [1, 2, 5, 10] Copy
import { number } from "@rjweb/utils"number.factors(5) // [1, 5]number.factors(10) // [1, 2, 5, 10]
1.12.17
nodejs, browser
Get the factors of a number