Home

function: lt


lt(value: *, other: *): boolean

Checks if `value` is less than `other`.

Example(s):

lt(1, 3)
// => true

lt(3, 3)
// => false

lt(3, 1)
// => false

Params:

Name Type Attribute Description
value The value to compare.
other The other value to compare.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is less than `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 `other`,\r\n *  else `false`.\r\n * @see gt, gte, lte\r\n * @example\r\n *\r\n * lt(1, 3)\r\n * // => true\r\n *\r\n * lt(3, 3)\r\n * // => false\r\n *\r\n * lt(3, 1)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            409,
            574
        ],
        "filename": "lt.js",
        "lineno": 22,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100005721",
            "name": "lt",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value",
                "other"
            ]
        },
        "vars": {
            "value": "lt~value",
            "other": "lt~other"
        }
    },
    "description": "Checks if `value` is less than `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 `other`,\r else `false`."
        }
    ],
    "see": [
        "gt, gte, lte"
    ],
    "examples": [
        "lt(1, 3)\r// => true\r\rlt(3, 3)\r// => false\r\rlt(3, 1)\r// => false"
    ],
    "name": "lt",
    "longname": "lt",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000532",
    "___s": true,
    "filepath": "lt.js"
}