Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.142.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