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

    Function right

    • Returns the rightmost length characters of the given string

      Parameters

      • Optionaltext: string | null

        The text to inspect

      • Optionallength: number

        The expected length

      Returns string | null | undefined

      the rightmost length characters of the given string

      David Hsing

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