Skip to content

Instantly share code, notes, and snippets.

View Jiler01's full-sized avatar
💭
∃!

Jiler JL Jiler01

💭
∃!
View GitHub Profile
@gitdagray
gitdagray / util.js
Last active February 8, 2024 14:15
Javascript Utility Functions
// Youtube tutorial here: https://youtu.be/LDgPTw6tePk
// These functions are designed to be exported, but you could create a class instead. See tutorial video.
// #1 proper case
export const properCase = (string) => {
return `${string[0].toUpperCase()}${string.slice(1).toLowerCase()}`;
};