diff options
-rw-r--r-- | comb.js | 12 | ||||
-rw-r--r-- | space.js | 1 |
2 files changed, 12 insertions, 1 deletions
@@ -0,0 +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){ + if (char1 == '') return char2; + else return char1; +} + +function sub(char1, char2){ + if (char1 == char2) return ''; + else return char1; +} @@ -123,5 +123,4 @@ function Space(){ // CLASS } } - module.exports = Space |