@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Function absolute

    • get the absolute positive value of a number.

      this function is faster than Math.abs as it uses the ternary conditional operator, which makes it highly JIT optimized.

      the reason why we don't call this function abs is because one such function already exists in the numericarray submodule (abs).

      Parameters

      • value: number

      Returns number