Checks if value is less than or equal toother. Part of Lodash Lang since 3.9.0 (stable — not deprecated). Note: equal values return true — use _.lt for strict less-than.
Pass the value you want to inspect or convert. Read the return type carefully before you use the result.
Syntax
Call _.lte. Start with this line.
Lodash
_.lte(value, other)
Call
What it does
_.lte(value, other)
Primary signature.
_.lte(value)
Check, compare, clone, or convert a value.
Prefer import lte from "lodash/lte" when you want a smaller bundle.
_.lte 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+
_.lte()
Available in [email protected] full builds and the lodash/lte 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
_.lteLodash 3.9.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import lte from "lodash/lte" for smaller builds. Named less-than-or-equal helper for inclusive filters and composition.
Frequently Asked Questions
_.lte(value, other) returns true when value is less than or equal to other. Equal values pass — unlike _.lt.
lte is less-than-or-equal. lt is strict less-than. So _.lte(3, 3) is true while _.lt(3, 3) is false. Coercion rules otherwise match.
For typical number pairs, yes. When both args are strings, Lodash keeps string <= (lexicographic). Otherwise both are converted with toNumber before comparing.
Any ordered comparison involving NaN is false in JavaScript. Use Number.isFinite or an explicit NaN check when you need special handling.
Use it for inclusive upper bounds — max scores, ages under-or-equal, deadlines on or before a date — or as a named predicate in callbacks.
Use import lte from "lodash/lte" or require("lodash/lte") so bundlers can tree-shake unused Lodash code. Full build: import _ from "lodash" then _.lte.