refactor: Use Math.floor to round down

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • bson-4.5.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb/js-bson/pull/406

      This commit replaces the ~~ operation with Math.floor, which is more consistent across the js-bson codebase, and arguably more readable too.

            Assignee:
            Unassigned
            Reporter:
            Alexander Golin (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: