Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dnt/lib/mod.deps.ts>CodeBlockWriter#endsWith

Deno to npm package build tool.
Go to Latest
method CodeBlockWriter.prototype.endsWith
import { CodeBlockWriter } from "https://deno.land/x/dnt@0.34.0/lib/mod.deps.ts";

Gets if the writer ends with the provided text.

Parameters

text: string
  • Text to check if the writer ends with the provided text.

Returns

boolean