Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score100%•This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun




License
•MIT
Downloads13,975/wk
•Published6 days ago (1.0.13)
INTERNAL: The internal package for @std. Do not use this directly.
Functions
f
assertFp(value: unknown): asserts value is FarthestPoint
Asserts that the value is a FarthestPoint.
If not, an error is thrown.
f
backTrace<T>(): Array<{ type: DiffType; value: T; }>
A: T[],
B: T[],
current: FarthestPoint,
swapped: boolean,
routes: Uint32Array,
diffTypesPtrOffset: number
Creates an array of backtraced differences.
f
createCommon<T>(): T[]
A: T[],
B: T[]
Creates an array of common elements between two arrays.
f
createFp(): FarthestPoint
k: number,
M: number,
routes: Uint32Array,
diffTypesPtrOffset: number,
ptr: number,
slide?: FarthestPoint,
down?: FarthestPoint
Creates a FarthestPoint.
f
diff<T>(): DiffResult<T>[]
A: T[],
B: T[]
Renders the differences between the actual and expected values.
Interfaces
I
Represents the farthest point in the diff algorithm.