close
Skip to main content

@std/internal@1.0.13
Built and signed on GitHub Actions

Works with
This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score100%
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>(
A: T[],
B: T[],
current: FarthestPoint,
swapped: boolean,
routes: Uint32Array,
diffTypesPtrOffset: number
): Array<{ type: DiffType; value: T; }>

Creates an array of backtraced differences.

f
createCommon<T>(
A: T[],
B: T[]
): T[]

Creates an array of common elements between two arrays.

f
createFp(
k: number,
M: number,
routes: Uint32Array,
diffTypesPtrOffset: number,
ptr: number,
slide?: FarthestPoint,
down?: FarthestPoint
): FarthestPoint

Creates a FarthestPoint.

f
diff<T>(
A: T[],
B: T[]
): DiffResult<T>[]

Renders the differences between the actual and expected values.

Interfaces

I

Represents the farthest point in the diff algorithm.

  • id: number

    The id of the point.

  • y: number

    The y-coordinate of the point.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/internal

Import symbol

import * as mod from "@std/internal/diff";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/internal/diff";