mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
28 lines
574 B
JavaScript
28 lines
574 B
JavaScript
import baseLt from './.internal/baseLt.js';
|
|
import createRelationalOperation from './.internal/createRelationalOperation.js';
|
|
|
|
/**
|
|
* 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
|
|
* @example
|
|
*
|
|
* lt(1, 3);
|
|
* // => true
|
|
*
|
|
* lt(3, 3);
|
|
* // => false
|
|
*
|
|
* lt(3, 1);
|
|
* // => false
|
|
*/
|
|
const lt = createRelationalOperation(baseLt);
|
|
|
|
export default lt;
|