@modular-forms/qwik
Version:
The modular and type-safe form library for Qwik
13 lines (12 loc) • 360 B
JavaScript
import { toCustom$ } from './toCustom$';
/**
* Creates a transformation functions that converts all the alphabetic
* characters in a string to uppercase.
*
* @param options The transform options.
*
* @returns A transformation functions.
*/
export function toUpperCase(options) {
return toCustom$((value) => value && value.toUpperCase(), options);
}