@bytebury/sauce - v1.4.0
    Preparing search index...

    Function reverse

    • Reverses the given string or list.

      If the thing provided is a string, then it will return the string in reverse respecting all characters.

      If the thing is a list, then it will reverse all items in the list.

      Parameters

      • thing: string

      Returns string

      reverse('Apple'); // "elppA"
      reverse([1, 2, 3]); // [3, 2, 1]
      reverse(new Set([1, 2, 3])); // Set[3, 2, 1]
    • Reverses the given string or list.

      If the thing provided is a string, then it will return the string in reverse respecting all characters.

      If the thing is a list, then it will reverse all items in the list.

      Type Parameters

      • T

      Parameters

      • thing: T[]

      Returns T[]

      reverse('Apple'); // "elppA"
      reverse([1, 2, 3]); // [3, 2, 1]
      reverse(new Set([1, 2, 3])); // Set[3, 2, 1]
    • Reverses the given string or list.

      If the thing provided is a string, then it will return the string in reverse respecting all characters.

      If the thing is a list, then it will reverse all items in the list.

      Parameters

      • thing: Set<unknown>

      Returns Set<unknown>

      reverse('Apple'); // "elppA"
      reverse([1, 2, 3]); // [3, 2, 1]
      reverse(new Set([1, 2, 3])); // Set[3, 2, 1]