The following code should return 16. However, it returns -1.
import BigNumber from 'bignumber.js';
const a = BigNumber(-1)
const p = BigNumber(17)
console.log(a.modulo(p))
The documentation does not provide clarity on how to handle this situation.