From 3770bbfc32feb7645bb19f630f3e7ffb8cc0f915 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 22 Jan 2020 12:47:46 +0200 Subject: [PATCH] Update mask.md --- snippets/mask.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/mask.md b/snippets/mask.md index 2456fc167..dbf04ef7a 100644 --- a/snippets/mask.md +++ b/snippets/mask.md @@ -1,6 +1,6 @@ --- title: mask -tags: string,utility,regexp,intermediate +tags: string,utility,intermediate --- Replaces all but the last `num` of characters with the specified mask character. @@ -17,4 +17,4 @@ const mask = (cc, num = 4, mask = '*') => `${cc}`.slice(-num).padStart(`${cc}`.l mask(1234567890); // '******7890' mask(1234567890, 3); // '*******890' mask(1234567890, -4, '$'); // '$$$$567890' -``` \ No newline at end of file +```