Skip to content

Instantly share code, notes, and snippets.

@dmitrade
Created January 7, 2019 15:25
Show Gist options
  • Select an option

  • Save dmitrade/c04f8c54f9928eb7f65874fabecb6caa to your computer and use it in GitHub Desktop.

Select an option

Save dmitrade/c04f8c54f9928eb7f65874fabecb6caa to your computer and use it in GitHub Desktop.

Revisions

  1. dmitrade created this gist Jan 7, 2019.
    3 changes: 3 additions & 0 deletions maskify
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function maskify(cc) {
    return cc.slice(0, -4).replace(/./g, '#') + cc.slice(-4);
    }