From ec8d6ce781028a89be7b893f714b426ad5069183 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 26 Dec 2019 23:31:12 -0500 Subject: simplified comb.js --- utils/comb.js | 7 ++----- 1 file 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; -- cgit