Checks if `value` is less than or equal to `other`.
lte(1, 3)
// => true
lte(3, 3)
// => true
lte(3, 1)
// => false
Name | Type | Attribute | Description |
---|---|---|---|
value | The value to compare. | ||
other | The other value to compare. |
{ "comment": "/**\r\n * Checks if `value` is less than or equal to `other`.\r\n *\r\n * @since 3.9.0\r\n * @category Lang\r\n * @param {*} value The value to compare.\r\n * @param {*} other The other value to compare.\r\n * @returns {boolean} Returns `true` if `value` is less than or equal to\r\n * `other`, else `false`.\r\n * @see gt, gte, lt\r\n * @example\r\n *\r\n * lte(1, 3)\r\n * // => true\r\n *\r\n * lte(3, 3)\r\n * // => true\r\n *\r\n * lte(3, 1)\r\n * // => false\r\n */", "meta": { "range": [ 434, 601 ], "filename": "lte.js", "lineno": 22, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100005755", "name": "lte", "type": "FunctionDeclaration", "paramnames": [ "value", "other" ] }, "vars": { "value": "lte~value", "other": "lte~other" } }, "description": "Checks if `value` is less than or equal to `other`.", "since": "3.9.0", "tags": [ { "originalTitle": "category", "title": "category", "text": "Lang", "value": "Lang" } ], "params": [ { "type": { "names": [ "*" ] }, "description": "The value to compare.", "name": "value" }, { "type": { "names": [ "*" ] }, "description": "The other value to compare.", "name": "other" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "Returns `true` if `value` is less than or equal to\r `other`, else `false`." } ], "see": [ "gt, gte, lt" ], "examples": [ "lte(1, 3)\r// => true\r\rlte(3, 3)\r// => true\r\rlte(3, 1)\r// => false" ], "name": "lte", "longname": "lte", "kind": "function", "scope": "global", "___id": "T000002R000536", "___s": true, "filepath": "lte.js" }