Title: Object.getOwnPropertyNames() · Issue #4 · K0II/JavaScript · GitHub
Open Graph Title: Object.getOwnPropertyNames() · Issue #4 · K0II/JavaScript
X Title: Object.getOwnPropertyNames() · Issue #4 · K0II/JavaScript
Description: 九个内置对象(函数)原型的property String.prototype.sayHello = function(){ console.log('hello'); } Object.getOwnPropertyNames(String.prototype); // ["length", "constructor", "toSource", "toString", "valueOf", "toLowerCase", "toUpperCase", "charAt", "...
Open Graph Description: 九个内置对象(函数)原型的property String.prototype.sayHello = function(){ console.log('hello'); } Object.getOwnPropertyNames(String.prototype); // ["length", "constructor", "toSource", "toString", "valueOf", "...
X Description: 九个内置对象(函数)原型的property String.prototype.sayHello = function(){ console.log('hello'); } Object.getOwnPropertyNames(String.prototype); // ["length", "constructor", "to...
Opengraph URL: https://github.com/K0II/JavaScript/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object.getOwnPropertyNames()","articleBody":"### 九个内置对象(函数)原型的property\n\n``` javascript\nString.prototype.sayHello = function(){\n console.log('hello');\n}\n\nObject.getOwnPropertyNames(String.prototype);\n// [\"length\", \"constructor\", \"toSource\", \"toString\", \"valueOf\", \"toLowerCase\", \"toUpperCase\", \"charAt\", \"charCodeAt\", \"substring\",\n// \"codePointAt\", \"includes\", \"contains\", \"indexOf\", \"lastIndexOf\", \"startsWith\", \"endsWith\", \"trim\", \"trimLeft\", \"trimRight\",\n// \"toLocaleLowerCase\", \"toLocaleUpperCase\", \"localeCompare\", \"repeat\", \"normalize\", \"match\", \"search\", \"replace\", \"split\",\n// \"substr\", \"concat\", \"slice\", \"bold\", \"italics\", \"fixed\", \"strike\", \"small\", \"big\", \"blink\", \"sup\", \"sub\", \"anchor\", \"link\",\n// \"fontcolor\", \"fontsize\", \"sayHello\"]\n\nObject.getOwnPropertyNames(Number.prototype);\n// [\"constructor\", \"toSource\", \"toString\", \"toLocaleString\", \"valueOf\", \"toFixed\", \"toExponential\", \"toPrecision\"]\n\nObject.getOwnPropertyNames(Boolean.prototype);\n// [\"constructor\", \"toSource\", \"toString\", \"valueOf\"]\n\nObject.getOwnPropertyNames(Object.prototype);\n// [\"toSource\", \"toString\", \"valueOf\", \"watch\", \"unwatch\", \"hasOwnProperty\", \"isPrototypeOf\", \"propertyIsEnumerable\", \"__proto__\",\n// \"constructor\", \"toLocaleString\", \"__defineGetter__\", \"__defineSetter__\", \"__lookupGetter__\", \"__lookupSetter__\"]\n\nObject.getOwnPropertyNames(Function.prototype);\n// [\"toSource\", \"toString\", \"apply\", \"call\", \"isGenerator\", \"arguments\", \"caller\", \"constructor\", \"bind\", \"length\", \"name\"]\n\nObject.getOwnPropertyNames(Array.prototype);\n// [\"length\", \"toSource\", \"toString\", \"toLocaleString\", \"join\", \"reverse\", \"sort\", \"push\", \"pop\", \"shift\", \"unshift\",\"splice\", \"concat\",\n// \"slice\", \"lastIndexOf\", \"indexOf\", \"forEach\", \"map\", \"filter\", \"reduce\",\"reduceRight\", \"some\", \"every\", \"find\", \"findIndex\", \"copyWithin\",\n// \"fill\", \"entries\", \"keys\", \"includes\", \"constructor\"]\n\nObject.getOwnPropertyNames(RegExp.prototype);\n// [\"lastIndex\", \"toSource\", \"toString\", \"compile\", \"exec\", \"test\", \"flags\", \"global\", \"ignoreCase\", \"multiline\", \"source\",\n// \"sticky\", \"unicode\", \"constructor\"]\n\nObject.getOwnPropertyNames(Date.prototype);\n// [\"getTime\", \"getTimezoneOffset\", \"getYear\", \"getFullYear\", \"getUTCFullYear\", \"getMonth\", \"getUTCMonth\", \"getDate\", \"getUTCDate\",\n// \"getDay\", \"getUTCDay\", \"getHours\", \"getUTCHours\", \"getMinutes\", \"getUTCMinutes\", \"getSeconds\", \"getUTCSeconds\", \"getMilliseconds\",\n// \"getUTCMilliseconds\", \"setTime\", \"setYear\", \"setFullYear\", \"setUTCFullYear\", \"setMonth\", \"setUTCMonth\", \"setDate\", \"setUTCDate\",\n// \"setHours\", \"setUTCHours\", \"setMinutes\", \"setUTCMinutes\", \"setSeconds\", \"setUTCSeconds\", \"setMilliseconds\", \"setUTCMilliseconds\",\n// \"toUTCString\", \"toLocaleFormat\", \"toLocaleString\", \"toLocaleDateString\", \"toLocaleTimeString\", \"toDateString\", \"toTimeString\",\n// \"toISOString\", \"toJSON\", \"toSource\", \"toString\", \"valueOf\", \"constructor\", \"toGMTString\"]\n\nObject.getOwnPropertyNames(Error.prototype);\n// [\"fileName\", \"lineNumber\", \"columnNumber\", \"message\", \"name\", \"toSource\", \"toString\", \"stack\", \"constructor\"]\n```\n","author":{"url":"https://github.com/K0II","@type":"Person","name":"K0II"},"datePublished":"2016-05-25T08:25:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/JavaScript/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3a322e4e-a651-a54a-0014-06afc90b721f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9C6:9D1CD:696D8E0:93459BD:6A5025E3 |
| html-safe-nonce | a10ea16104f4685e8da81edb8e2ca50e9b2387176b950747bc095ccff5b63ac6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUM2OjlEMUNEOjY5NkQ4RTA6OTM0NTlCRDo2QTUwMjVFMyIsInZpc2l0b3JfaWQiOiI3MjE4NTExNTY2MDc4MDQ4OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 229b06efa08c74f9cbaaad17e70d65387c8c20342a2fc66ce3348208b2cf95cf |
| hovercard-subject-tag | issue:156690791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/K0II/JavaScript/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e1c859081015fc0b0a4682cbdee11ea60efc875faa6acbcd31c3ad13faeee95/K0II/JavaScript/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e1c859081015fc0b0a4682cbdee11ea60efc875faa6acbcd31c3ad13faeee95/K0II/JavaScript/issues/4 |
| og:image:alt | 九个内置对象(函数)原型的property String.prototype.sayHello = function(){ console.log('hello'); } Object.getOwnPropertyNames(String.prototype); // ["length", "constructor", "toSource", "toString", "valueOf", "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | K0II |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| turbo-cache-control | no-preview |
| go-import | github.com/K0II/JavaScript git https://github.com/K0II/JavaScript.git |
| octolytics-dimension-user_id | 19141974 |
| octolytics-dimension-user_login | K0II |
| octolytics-dimension-repository_id | 57857936 |
| octolytics-dimension-repository_nwo | K0II/JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 57857936 |
| octolytics-dimension-repository_network_root_nwo | K0II/JavaScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width