A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
If the value is empty, it becomes undefined. Otherwise it will be transformed.
/**
If the value is empty, it becomes undefined. Otherwise it will be transformed.
A type safe way to apply a transformer on a value if it's not empty.
Param: transformer
The transformer.
Param: value
The value to be transformed.
Returns
If the value is empty, it becomes undefined. Otherwise it will be transformed.