Checks if value is strictly less thanother. Part of Lodash Lang since 3.9.0 (stable — not deprecated). Note: equal values return false — use _.lte for less-or-equal.
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.lt. Start with this line.
Lodash
_.lt(value, other)
Call
What it does
_.lt(value, other)
Primary signature.
_.lt(value)
Check, compare, clone, or convert a value.
Prefer import lt from "lodash/lt" when you want a smaller bundle.
Why lt. Named helper reads clearly next to other Lodash lang predicates.
Compatibility
Browser & Runtime Support
_.lt is a Lodash 3.9+ / 4.x Lang helper. It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native engines already have <; Lodash provides a function form for composition.
✓ Stable · Lodash 3.9.0+
_.lt()
Available in [email protected] full builds and the lodash/lt modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.ltLodash 3.9.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import lt from "lodash/lt" for smaller builds. Named less-than helper for filters and composition.
Frequently Asked Questions
_.lt(value, other) returns true when value is strictly less than other. It uses the same relational comparison idea as JavaScript’s < operator (Lodash coerces non-string pairs via toNumber).
For typical number pairs, yes. When both args are strings, Lodash keeps string < (lexicographic). Otherwise both are converted with toNumber before comparing.
lt is strict less-than. lte is less-than-or-equal, so _.lte(3, 3) is true while _.lt(3, 3) is false.
Any ordered comparison involving NaN is false in JavaScript. Use Number.isFinite or an explicit NaN check when you need special handling.
Like < on strings: UTF-16 code unit order, not locale-aware collation. Prefer Intl.Collator for human language sorting.
Use import lt from "lodash/lt" or require("lodash/lt") so bundlers can tree-shake unused Lodash code. Full build: import _ from "lodash" then _.lt.