Converts a string to uppercase.
lowercase("Hello World")// => { ok: true, value: 'hello world' } Copy
lowercase("Hello World")// => { ok: true, value: 'hello world' }
Handling non-string input:
lowercase(42)// => { ok: false, error: Error('[strings.lowercase] Expected string value as input') } Copy
lowercase(42)// => { ok: false, error: Error('[strings.lowercase] Expected string value as input') }
The string to convert to uppercase.
A Result object with either the converted string on success, or an Error object if the provided input is not a string.
Result
Error
Generated using TypeDoc v0.24.7
Converts a string to uppercase.
Example
Example
Handling non-string input: