Home

function: isWeakSet


isWeakSet(value: *): boolean

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

Example(s):

isWeakSet(new WeakSet)
// => true

isWeakSet(new Set)
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is classified as a `WeakSet` 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 set, else `false`.\r\n * @example\r\n *\r\n * isWeakSet(new WeakSet)\r\n * // => true\r\n *\r\n * isWeakSet(new Set)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            376,
            497
        ],
        "filename": "isWeakSet.js",
        "lineno": 18,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100005424",
            "name": "isWeakSet",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        }
    },
    "description": "Checks if `value` is classified as a `WeakSet` 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 set, else `false`."
        }
    ],
    "examples": [
        "isWeakSet(new WeakSet)\r// => true\r\risWeakSet(new Set)\r// => false"
    ],
    "name": "isWeakSet",
    "longname": "isWeakSet",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000512",
    "___s": true,
    "filepath": "isWeakSet.js"
}