artdaq_node_server  v1_00_07
 All Classes Namespaces Files Variables Pages
_createRelationalOperation.js
1 var toNumber = require('./toNumber');
2 
10 function createRelationalOperation(operator) {
11  return function(value, other) {
12  if (!(typeof value == 'string' && typeof other == 'string')) {
13  value = toNumber(value);
14  other = toNumber(other);
15  }
16  return operator(value, other);
17  };
18 }
19 
20 module.exports = createRelationalOperation;