diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-26 23:31:12 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 14:57:57 -0500 |
commit | ec8d6ce781028a89be7b893f714b426ad5069183 (patch) | |
tree | 6fdd288abb83b6808e2e9e56cf0f84e9463085e1 /utils | |
parent | 1538d6b79ad5f1d50653051875e58953ceff4c43 (diff) |
simplified comb.js
Diffstat (limited to 'utils')
-rw-r--r-- | utils/comb.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/comb.js b/utils/comb.js index dee97c1..9ffcb86 100644 --- a/utils/comb.js +++ b/utils/comb.js @@ -1,15 +1,12 @@ // A set of combine utilities for use with Space.comb() // Note: char1 is this and char2 is other. char1 will go "over" char2 -function add(char1, char2){ +exports.add = function(char1, char2){ if (char1 == '') return char2; else return char1; } -function sub(char1, char2){ +exports.sub = function(char1, char2){ if (char1 == char2) return ''; else return char1; } - -exports.add = add; -exports.sub = sub; |