text →
train-case() → text

Returns the input text in Train-Case, capitalizing each word and joining them with hyphens. Preserves null, empty, and blank inputs; returns null for a zero-length array.

Parameters

This function has no parameters.

Examples

"Hello World" | train-case  "Hello-World"

Kind: Function
Scope: text/casing
Aliases: text-to-train-case


This site uses Just the Docs, a documentation theme for Jekyll.