mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 09:29:30 +08:00
11 lines
358 B
Text
11 lines
358 B
Text
/**
|
|
* Get the count of the longest repeating streak of `character` in `value`.
|
|
*
|
|
* @param {string} value
|
|
* Content to search in.
|
|
* @param {string} character
|
|
* Single character to look for.
|
|
* @returns {number}
|
|
* Count of most frequent adjacent `character`s in `value`.
|
|
*/
|
|
export function longestStreak(value: string, character: string): number
|