We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { primeFactors } from './primeFactors' const a = primeFactors(7) console.log(a) const b = primeFactors(222) console.log(b) console.log(a)
[ 7 ] [ 2, 3, 37 ] [ 2, 3, 37 ]
[ 7 ] [ 2, 3, 37 ] [ 7 ]
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue, I will try to make time to look into it ;)
For the time being, you can work around it by cloning the array:
const a = [...primeFactors(7)];
Sorry, something went wrong.
4a7fb17
Fixed in version 0.5.0
vitaly-t
No branches or pull requests
Steps to reproduce
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: