Skip to content

Commit

Permalink
fix: make code more downward-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Oct 13, 2024
1 parent 27a2bb3 commit d1e4386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const RAD2DEG = 180 / PI;
* @returns {any[]}
*/
function reverse3(arr) {
return [...arr.slice(0, 3).toReversed(), ...arr.slice(3)];
return [...arr.slice(0, 3).reverse(), ...arr.slice(3)];
}

export { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max, rnd2, rnd3, reverse3 };

0 comments on commit d1e4386

Please sign in to comment.