Explorer

definy.string-trim

description
The string without the spaces at both ends (definy.is-space)
type
Fn(value: String) -> String
expression
fn(value$0) =>
  let start$1 = @definy.string-trim-start-index(value: $0, index: 0);
  @core.string-slice(
    value: $0,
    start: $1,
    end: @definy.string-trim-end-index(value: $0, start: $1, end: @core.string-length(value: $0))
  )
visibility
public
definy.string-trim (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: mHYbma7U6GOAZR5gBZXp74T0DOKbkJnwLmS8j0WM-wA
content hash: W_Ifn4oBZ5a7esEqOtfI0iPpLOcyhHmxHcEFdgCDKnc