UNPKG

@lillallol/outline-pdf-data-structure

Version:

Create a pdf outline data structure from a high level string representation of pdf outline. This data structure can be used to create a real pdf outline.

13 lines (12 loc) 353 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLastLineOfString = void 0; /** * @description * Return the last line of the provided string. */ function getLastLineOfString(string) { const lines = string.split("\n"); return lines[lines.length - 1]; } exports.getLastLineOfString = getLastLineOfString;