| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > Text > ensureTrailingNewline
Returns the input string with a trailing \n character appended, if not already present.
Signature:
static ensureTrailingNewline(s: string, newlineKind?: NewlineKind): string;|
Parameter |
Type |
Description |
|---|---|---|
|
s |
string | |
|
newlineKind |
(Optional) |
Returns:
string