1234567891011121314151617181920 |
- import toNumber from './toNumber.js';
- function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == 'string' && typeof other == 'string')) {
- value = toNumber(value);
- other = toNumber(other);
- }
- return operator(value, other);
- };
- }
- export default createRelationalOperation;
|