mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v3.9.0.
This commit is contained in:
28
lang/lte.js
Normal file
28
lang/lte.js
Normal file
@@ -0,0 +1,28 @@
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Checks if `value` is less than or equal to `other`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Lang
|
||||
* @param {*} value The value to compare.
|
||||
* @param {*} other The other value to compare.
|
||||
* @returns {boolean} Returns `true` if `value` is less than or equal to `other`, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.lte(1, 3);
|
||||
* // => true
|
||||
*
|
||||
* _.lte(3, 3);
|
||||
* // => true
|
||||
*
|
||||
* _.lte(3, 1);
|
||||
* // => false
|
||||
*/
|
||||
function lte(value, other) {
|
||||
return value <= other;
|
||||
}
|
||||
|
||||
return lte;
|
||||
});
|
||||
Reference in New Issue
Block a user