source: node_modules/es-toolkit/dist/compat/util/lt.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 238 bytes
Line 
1import { toNumber } from './toNumber.mjs';
2
3function lt(value, other) {
4 if (typeof value === 'string' && typeof other === 'string') {
5 return value < other;
6 }
7 return toNumber(value) < toNumber(other);
8}
9
10export { lt };
Note: See TracBrowser for help on using the repository browser.