@yookue/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'