@webdeveric/utils
    Preparing search index...

    Function trimEnd

    • Remove char from the end of str, or whitespace if char isn't provided.

      Parameters

      • str: string
      • Optionalchar: string

      Returns string

      trimEnd('hello   '); // 'hello'
      trimEnd('hello///', '/'); // 'hello'