A JavaScript function that retrieves the position of the last character in an output text string.
npm install @jswork/get-last-char
import getLastChar from '@jswork/get-last-char';
// usage goes here.
/// <reference types="@jswork/get-last-char/global.d.ts" />
Code released under the MIT license.