Skip to main content
Module

x/code_block_writer/mod.ts>default#iterateLastCharCodes

Code writer for JavaScript and TypeScript code.
Go to Latest
method default.prototype.iterateLastCharCodes
import { default } from "https://deno.land/x/code_block_writer@11.0.0/mod.ts";

Iterates over the writer character char codes in reverse order. The iteration stops when a non-null or undefined value is returned from the action. The returned value is then returned by the method.

Parameters

action: (charCode: number, index: number) => T | undefined

Returns

T | undefined