Skip to main content
Module

x/code_block_writer/mod.ts>default#endsWith

Code writer for JavaScript and TypeScript code.
Go to Latest
method default.prototype.endsWith
import { default } from "https://deno.land/x/code_block_writer@11.0.0/mod.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