Math.floor vs ~~

Edit on GitHub

Setup

Tests

  • Math.floor

    Math.floor(10.45);
  • ~~

    ~~10.45