Checks if `value` is a pristine native function.
isNative(Array.prototype.push)
// => true
isNative(isDate)
// => false
Name | Type | Attribute | Description |
---|---|---|---|
value | The value to check. |
{ "comment": "/**\r\n * Checks if `value` is a pristine native function.\r\n *\r\n * @since 3.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is a native function,\r\n * else `false`.\r\n * @example\r\n *\r\n * isNative(Array.prototype.push)\r\n * // => true\r\n *\r\n * isNative(isDate)\r\n * // => false\r\n */", "meta": { "range": [ 1015, 1199 ], "filename": "isNative.js", "lineno": 37, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100004946", "name": "isNative", "type": "FunctionDeclaration", "paramnames": [ "value" ] }, "vars": { "pattern": "isNative~pattern" } }, "description": "Checks if `value` is a pristine native function.", "since": "3.0.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 native function,\r else `false`." } ], "examples": [ "isNative(Array.prototype.push)\r// => true\r\risNative(isDate)\r// => false" ], "name": "isNative", "longname": "isNative", "kind": "function", "scope": "global", "___id": "T000002R000471", "___s": true, "filepath": "isNative.js" }