MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / isAllSame

Function isAllSame

src/utils.ts:78–85  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

76}
77
78export function isAllSame(code: string): boolean {
79 if (!code) return false
80 const first = code[0]
81 for (let i = 1; i < code.length; i++) {
82 if (code[i] !== first) return false
83 }
84 return true
85}
86
87export function isTooSimpleSequence(code: string): boolean {
88 if (!code || code.length < 3) return false

Callers 4

isCodeAllowedFunction · 0.90
memorabilityScoreFunction · 0.90
analyzeFunction · 0.90
isModeCompatibleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected