From 954da9aeef515a2180a0cab35eb0a67aa9d20a75 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Thu, 19 Dec 2019 07:50:56 -0500 Subject: moved comb.js --- comb.js | 12 ------------ utils/comb.js | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 comb.js create mode 100644 utils/comb.js diff --git a/comb.js b/comb.js deleted file mode 100644 index f607790..0000000 --- a/comb.js +++ /dev/null @@ -1,12 +0,0 @@ -// 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; -} diff --git a/utils/comb.js b/utils/comb.js new file mode 100644 index 0000000..f607790 --- /dev/null +++ b/utils/comb.js @@ -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; +} -- cgit