@blinkk/degu
    Preparing search index...

    Function direction

    • Gets the direction in which a number is progress. 0 means the same, no movement. 1 means moving forward. -1 means moving backwards.

      matfh.direction(1, 2) ---> 1
      matfh.direction(3, 1) ---> -1
      matfh.direction(1, 1) ---> 0

      Parameters

      • previous: number
      • current: number

      Returns number