aboutsummaryrefslogtreecommitdiff
path: root/utils/comb.js
blob: 9ffcb86fdaf0533bffc445353e506ce9832c1c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// A set of combine utilities for use with Space.comb()
// Note: char1 is this and char2 is other. char1 will go "over" char2

exports.add = function(char1, char2){
  if (char1 == '') return char2;
  else return char1;
}

exports.sub = function(char1, char2){
  if (char1 == char2) return '';
  else return char1;
}