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

    Function sign

    • get the sign of a number. you'll get a 1 for positive numbers (or zero), and -1 otherwise.

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

      Parameters

      • value: number

      Returns -1 | 1