@yookue/ts-lang-utils
    Preparing search index...

    Function reverse

    • Returns the reversed representation of the given string

      Parameters

      • Optionaltext: null | string

        the source string to inspect

      • OptionalstartInclusive: number

        the starting index, inclusive

      • OptionalendExclusive: number

        the ending index, exclusive

      Returns undefined | null | string

      the reversed representation of the given string

      David Hsing

      reverse('foobar');    // 'raboof'
      reverse('foobar', 1, 5); // 'aboo'