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 lt(value, other) {
|
|
if (typeof value === 'string' && typeof other === 'string') {
|
|
return value < other;
|
|
}
|
|
return toNumber.toNumber(value) < toNumber.toNumber(other);
|
|
}
|
|
|
|
exports.lt = lt;
|