diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/comb.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/comb.js b/utils/comb.js index 607343a..8d53d68 100644 --- a/utils/comb.js +++ b/utils/comb.js @@ -15,3 +15,8 @@ exports.mask = function(char1, char2){ // Meant for hiding text (if char1 is val if (char1 == '') return char2; else return ''; } + +exports.unmask = function(char1, char2){ // Opposite of .mask: shows char2 only if char1 is valid + if (char1 == '') return ''; + else return char2; +} |