diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/comb.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/comb.js b/utils/comb.js index 8d53d68..4ad89b0 100644 --- a/utils/comb.js +++ b/utils/comb.js @@ -20,3 +20,7 @@ exports.unmask = function(char1, char2){ // Opposite of .mask: shows char2 only if (char1 == '') return ''; else return char2; } + +exports.flip = function(func){ // Switches this and other in the combination algorithm + return (char2, char1) => func(char1, char2); +} |