Skip to content

Instantly share code, notes, and snippets.

@venelrene
Created May 7, 2020 16:56
Show Gist options
  • Save venelrene/46ddca834602305b727046640d01e85f to your computer and use it in GitHub Desktop.
Save venelrene/46ddca834602305b727046640d01e85f to your computer and use it in GitHub Desktop.

Revisions

  1. venelrene created this gist May 7, 2020.
    3 changes: 3 additions & 0 deletions AbbreviateATwoWordName.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function abbrevName(name){
    return name.match(/\b\w/g).join('.').toUpperCase();
    }