Home

function: isWeakMap


isWeakMap(value: *): boolean

Checks if `value` is classified as a `WeakMap` object.

Example(s):

isWeakMap(new WeakMap)
// => true

isWeakMap(new Map)
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is classified as a `WeakMap` object.\r\n *\r\n * @since 4.3.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\r\n * @example\r\n *\r\n * isWeakMap(new WeakMap)\r\n * // => true\r\n *\r\n * isWeakMap(new Map)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            376,
            497
        ],
        "filename": "isWeakMap.js",
        "lineno": 18,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100005398",
            "name": "isWeakMap",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        }
    },
    "description": "Checks if `value` is classified as a `WeakMap` object.",
    "since": "4.3.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 a weak map, else `false`."
        }
    ],
    "examples": [
        "isWeakMap(new WeakMap)\r// => true\r\risWeakMap(new Map)\r// => false"
    ],
    "name": "isWeakMap",
    "longname": "isWeakMap",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000510",
    "___s": true,
    "filepath": "isWeakMap.js"
}