Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/prelude_js/to_upper_case.ts>toUpperCase

A standard module for functional programming
Latest
function toUpperCase
import { toUpperCase } from "https://deno.land/x/prelude_js@1.2.0/to_upper_case.ts";

Converts all the alphabetic characters in a string to uppercase.

Examples

Example 1

import { toUpperCase } from "https://deno.land/x/prelude_js@$VERSION/to_upper_case.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";

assertEquals(toUpperCase("deno"), "DENO");

Type Parameters

T extends string

Parameters

input: T

Any string.

Returns

Uppercase<T>