`cube` and `square` functions should use `to-power` function
Closed this issue · 1 comments
baruchvlz commented
It would make sense to use the library internally. cube and square could use is-power.
Example:
import toPower from './to-power'
function cube(number) {
return toPower(number, 3)
}
// cube(2) -> 8kentcdodds commented
Hi @baruchvlz!
If this library were supposed to be useful and used then I would agree with you, but the library is intended to just be a place for people to practice making pull requests so I actually don't care about the quality of the code and actually prefer every function to be totally isolated and separate to make things easier for people to contribute.
Thanks@