Skip to content

Bars Specification 0.1.0 — Transform: strip

Category: string · Since: 0.1.0

Trims leading and trailing whitespace.

Trims leading and trailing Unicode whitespace from the string-coerced input.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

[{{ phrase | strip }}]

[hello  world]
[{{ phrase | strip | upcase }}]

[HELLO]

Full fixture: transforms/transform-strip.json