blob: dee97c16f1e168d89d6f3b6291960a45f000b89b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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;
}
exports.add = add;
exports.sub = sub;
|