|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
629 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | var createRelationalOperation = require('./_createRelationalOperation');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Checks if `value` is less than or equal to `other`.
|
|---|
| 5 | *
|
|---|
| 6 | * @static
|
|---|
| 7 | * @memberOf _
|
|---|
| 8 | * @since 3.9.0
|
|---|
| 9 | * @category Lang
|
|---|
| 10 | * @param {*} value The value to compare.
|
|---|
| 11 | * @param {*} other The other value to compare.
|
|---|
| 12 | * @returns {boolean} Returns `true` if `value` is less than or equal to
|
|---|
| 13 | * `other`, else `false`.
|
|---|
| 14 | * @see _.gte
|
|---|
| 15 | * @example
|
|---|
| 16 | *
|
|---|
| 17 | * _.lte(1, 3);
|
|---|
| 18 | * // => true
|
|---|
| 19 | *
|
|---|
| 20 | * _.lte(3, 3);
|
|---|
| 21 | * // => true
|
|---|
| 22 | *
|
|---|
| 23 | * _.lte(3, 1);
|
|---|
| 24 | * // => false
|
|---|
| 25 | */
|
|---|
| 26 | var lte = createRelationalOperation(function(value, other) {
|
|---|
| 27 | return value <= other;
|
|---|
| 28 | });
|
|---|
| 29 |
|
|---|
| 30 | module.exports = lte;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.