toTrimmed

Creates a transformation functions that removes the leading and trailing white space and line terminator characters from a string.

const transform = toTrimmed(options);

Parameters

  • options object
    • on 'input' | 'change' | 'blur'

Return