The Wayback Machine - https://web.archive.org/web/20170626181053/https://github.com/lodash/lodash/blob/master/lt.js
Skip to content
Permalink
bb7c959 Mar 13, 2017
@jdalton @bertyhell
31 lines (29 sloc) 567 Bytes
/**
* Checks if `value` is less than `other`.
*
* @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if `value` is less than `other`,
* else `false`.
* @see gt, gte, lte
* @example
*
* lt(1, 3)
* // => true
*
* lt(3, 3)
* // => false
*
* lt(3, 1)
* // => false
*/
function lt(value, other) {
if (!(typeof value == 'string' && typeof other == 'string')) {
value = +value
other = +other
}
return value < other
}
export default lt
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.