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

    Function right

    • Returns the rightmost length characters of the given string

      Parameters

      • Optionaltext: null | string

        The text to inspect

      • Optionallength: number

        The expected length

      Returns undefined | null | string

      the rightmost length characters of the given string

      David Hsing

      right('foobar', 3);    // 'bar'
      right('foobar', 10); // 'foobar'