aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-26 23:34:19 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:57:57 -0500
commitc393afc348baefddf201e10c4d4d45ccde7f29ba (patch)
treee7eb02293dae49ba18480351933f99bf554707d8 /utils
parentec8d6ce781028a89be7b893f714b426ad5069183 (diff)
added comb.mask
Diffstat (limited to 'utils')
-rw-r--r--utils/comb.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/comb.js b/utils/comb.js
index 9ffcb86..607343a 100644
--- a/utils/comb.js
+++ b/utils/comb.js
@@ -10,3 +10,8 @@ exports.sub = function(char1, char2){
if (char1 == char2) return '';
else return char1;
}
+
+exports.mask = function(char1, char2){ // Meant for hiding text (if char1 is valid, mask char2 with null character)
+ if (char1 == '') return char2;
+ else return '';
+}