Skip to content

Commit

Permalink
new file: capitalise-initials.md
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad committed Nov 21, 2023
1 parent 8ddb187 commit b76192d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions javascript/capitalise-initials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Capitalise Initials

```cpp
const getCapitalizedInitials = (name) =>
name
.trim()
.split(" ")
.map((name) => name.charAt(0))
.join("")
.toUpperCase()
```

0 comments on commit b76192d

Please sign in to comment.