Skip to main content
Module

x/core_fn/string/to_upper_case.ts

A collection of built-in object method and property as currying function
Latest
File
// Copyright 2021-present the Core-fn authors. All rights reserved. MIT license./** * Return uppercase string. * * @param val - Input string value * @returns Uppercase string * * @example * ```ts * toUpperCase('Hello') // HELLO * ``` * * @category `String` * * @beta */const toUpperCase = <T extends string>(val: T): Uppercase<T> => val.toUpperCase() as Uppercase<T>;
export { toUpperCase };