@webdeveric/utils
    Preparing search index...

    Function countCharacter

    • Count how many times char occurs in input.

      Parameters

      • input: string
      • char: string

      Returns number

      countCharacter('hello', 'l'); // 2