Closed joseprio closed 3 years ago
Noticed that both ZzFX and ZzFXMicro implement a sign function. In the context where this is used, it can be replaced with Math.sign, which has fairly good browser support.
sign
Math.sign
Happy to provide a PR.
After checking, looks like this is already optimized, probably by inlining.
Noticed that both ZzFX and ZzFXMicro implement a
sign
function. In the context where this is used, it can be replaced withMath.sign
, which has fairly good browser support.Happy to provide a PR.