Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/count

Index

Functions

Functions

  • count(value: string, character: string): number
  • Counts how often character occurs inside value.

    example
     count('Hello World', 'o'); //=> 2
    

    Parameters

    • value: string
    • character: string

    Returns number

Generated using TypeDoc