【文件属性】:
文件名称:all-keys:获取对象的所有属性键,包括不可枚举和继承的
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-01 07:28:40
npm-package prototype-chain object-keys JavaScript
全键
获取对象的所有属性键,包括不可枚举和继承的
像一样,但是遍历原型链。
安装
$ npm install all-keys
用法
import allKeys from 'all-keys' ;
Object . getOwnPropertyNames ( Symbol . prototype ) ;
/*
[
'constructor',
'toString',
'valueOf'
]
*/
allKeys ( Symbol . prototype ) ;
/*
Set {
'constructor',
'toString',
'valueOf',
'toLocaleString',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'__defineGetter__',
'__lookupG
【文件预览】:
all-keys-main
----index.js(509B)
----test.js(815B)
----package.json(894B)
----index.test-d.ts(498B)
----readme.md(1KB)
----.github()
--------workflows()
----license(1KB)
----index.d.ts(1KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)