📄 index.d.ts
/home/palash/git/site/node_modules/ccount/index.d.ts
Language: ts • Lines: 11
/**
 * Count how often a character (or substring) is used in a string.
 *
 * @param {string} value
 *   Value to search in.
 * @param {string} character
 *   Character (or substring) to look for.
 * @return {number}
 *   Number of times `character` occurred in `value`.
 */
export function ccount(value: string, character: string): number