15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const toNumber = require('./toNumber.js');
|
|
|
|
function gt(value, other) {
|
|
if (typeof value === 'string' && typeof other === 'string') {
|
|
return value > other;
|
|
}
|
|
return toNumber.toNumber(value) > toNumber.toNumber(other);
|
|
}
|
|
|
|
exports.gt = gt;
|