Skip to content

Instantly share code, notes, and snippets.

View Jiler01's full-sized avatar
💭
∃!

Jiler JL Jiler01

💭
∃!
  • France
  • 20:40 (UTC +01:00)
View GitHub Profile
@gitdagray
gitdagray / util.js
Last active September 28, 2024 01:51
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()}`;
};