UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (8 loc) 238 B
import { toNumber } from './toNumber.mjs'; function lt(value, other) { if (typeof value === 'string' && typeof other === 'string') { return value < other; } return toNumber(value) < toNumber(other); } export { lt };