Skip to main content
Module

std/testing/_diff.ts>diffstr

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function diffstr
import { diffstr } from "https://deno.land/std@0.126.0/testing/_diff.ts";

Renders the differences between the actual and expected strings Partially inspired from https://github.com/kpdecker/jsdiff

Parameters

A: string

Actual string

B: string

Expected string