Home

function: isNull


isNull(value: *): boolean

Checks if `value` is `null`.

Example(s):

isNull(null)
// => true

isNull(void 0)
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is `null`.\r\n *\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\r\n * @example\r\n *\r\n * isNull(null)\r\n * // => true\r\n *\r\n * isNull(void 0)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            286,
            338
        ],
        "filename": "isNull.js",
        "lineno": 16,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100004989",
            "name": "isNull",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        }
    },
    "description": "Checks if `value` is `null`.",
    "since": "0.1.0",
    "tags": [
        {
            "originalTitle": "category",
            "title": "category",
            "text": "Lang",
            "value": "Lang"
        }
    ],
    "params": [
        {
            "type": {
                "names": [
                    "*"
                ]
            },
            "description": "The value to check.",
            "name": "value"
        }
    ],
    "returns": [
        {
            "type": {
                "names": [
                    "boolean"
                ]
            },
            "description": "Returns `true` if `value` is `null`, else `false`."
        }
    ],
    "examples": [
        "isNull(null)\r// => true\r\risNull(void 0)\r// => false"
    ],
    "name": "isNull",
    "longname": "isNull",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000476",
    "___s": true,
    "filepath": "isNull.js"
}