UNPKG

@modular-forms/react

Version:

The modular and type-safe form library for React

13 lines (12 loc) 357 B
import { toCustom } from './toCustom'; /** * Creates a transformation functions that converts all the alphabetic * characters in a string to lowercase. * * @param options The transform options. * * @returns A transformation functions. */ export function toLowerCase(options) { return toCustom((value) => value && value.toLowerCase(), options); }