@bytebury/sauce - v2.2.0
    Preparing search index...

    Function milliseconds

    • Returns the number of milliseconds given. Although this just returns the given value, this is useful to portray a function takes in milliseconds.

      Parameters

      • ms: number

      Returns number

      milliseconds(500);
      milliseconds(1_000);
      setTimeout(() => {}, milliseconds(3_000));