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