Skip to content

Instantly share code, notes, and snippets.

@danierdev
danierdev / string-utils.ts
Last active April 13, 2020 13:57
Little javascript method to get initials from a name
function getInitials(str: string, glue = true): string | string[] {
const initials = str.replace(/[^a-zA-Z- ]/g, '').match(/\b\w/g);
if (glue) {
return initials.join('');
}
return initials;
}
@danierdev
danierdev / ABC.md
Created September 8, 2022 19:27 — forked from jdnichollsc/ABC.md
The Job Interview Guide

The Job Interview Guide 💼

And English is a Work in Progress ⌛