MCPcopy Create free account
hub / github.com/kpdecker/jsdiff / tokenize

Method tokenize

src/diff/base.ts:291–293  ·  view source on GitHub ↗
(value: ValueT, options: AllDiffOptions)

Source from the content-addressed store, hash-verified

289
290 // eslint-disable-next-line @typescript-eslint/no-unused-vars
291 tokenize(value: ValueT, options: AllDiffOptions): TokenT[] {
292 return Array.from(value);
293 }
294
295 join(chars: TokenT[]): ValueT {
296 // Assumes ValueT is string, which is the case for most subclasses.

Callers 1

diffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected