2.0.0 • Published 6 years ago
get-factors v2.0.0
get-factors
Get The Prime Or All The Factors Of A Number
Install
$ npm install get-factors
Usage
const getFactors = require('get-factors')
// import getFactors from 'get-factors' (if you prefer es6 imports)
getFactors(28)
// => [1, 2, 4, 7, 14, 28]
License
MIT © Samarth Verma