All Projects → sindresorhus → All Keys

sindresorhus / All Keys

Licence: mit
Get all property keys of an object including non-enumerable and inherited ones

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to All Keys

Minimal Feedback
🗳 minimal-feedback is a blazingly fast and highly customizable component to get user feedback.
Stars: ✭ 78 (-22%)
Mutual labels:  npm-package
Node Fast Ratelimit
☔️ Fast and efficient in-memory rate-limit for Node, used to alleviate most common DOS attacks.
Stars: ✭ 84 (-16%)
Mutual labels:  npm-package
Ngx Api Utils
ngx-api-utils is a lean library of utilities and helpers to quickly integrate any HTTP API (REST, Ajax, and any other) with Angular.
Stars: ✭ 92 (-8%)
Mutual labels:  npm-package
Webcam Easy
javascript access webcam stream and take photo
Stars: ✭ 79 (-21%)
Mutual labels:  npm-package
React Infinite Scroll Component
An awesome Infinite Scroll component in react.
Stars: ✭ 1,235 (+1135%)
Mutual labels:  npm-package
React Native Get Sms Android
React Native module to get messages on an Android device
Stars: ✭ 89 (-11%)
Mutual labels:  npm-package
Vue C3
vue-c3 is a reusable vue component for c3 charts
Stars: ✭ 76 (-24%)
Mutual labels:  npm-package
Tplink Cloud Api
A node.js npm module to remotely control TP-Link smartplugs (HS100, HS110) and smartbulbs (LB100, LB110, LB120, LB130) using their cloud web service (no need to be on the same wifi/lan)
Stars: ✭ 96 (-4%)
Mutual labels:  npm-package
Add Asset Webpack Plugin
Dynamically add an asset to the Webpack graph
Stars: ✭ 84 (-16%)
Mutual labels:  npm-package
Got
🌐 Human-friendly and powerful HTTP request library for Node.js
Stars: ✭ 10,620 (+10520%)
Mutual labels:  npm-package
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (-21%)
Mutual labels:  npm-package
Webhook Discord
A simple Javascript file for nicely formatting Discord webhooks
Stars: ✭ 81 (-19%)
Mutual labels:  npm-package
Rollup Plugin Chrome Extension
A feature-rich solution for bundled Chrome extensions! 💯
Stars: ✭ 89 (-11%)
Mutual labels:  npm-package
Ptt Client
A Node.js/Browser client for fetching data from ptt.cc
Stars: ✭ 78 (-22%)
Mutual labels:  npm-package
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (-8%)
Mutual labels:  npm-package
Incompose
A inferno utility belt for function components and higher-order components
Stars: ✭ 76 (-24%)
Mutual labels:  npm-package
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-10%)
Mutual labels:  npm-package
Airtap
Run TAP unit tests in 1789+ browsers.
Stars: ✭ 1,364 (+1264%)
Mutual labels:  npm-package
Vue Csv Import
Vue.js component to select a CSV file, map the columns to fields, and post it somewhere.
Stars: ✭ 95 (-5%)
Mutual labels:  npm-package
Event Target Shim
An implementation of WHATWG EventTarget interface, plus few extensions.
Stars: ✭ 89 (-11%)
Mutual labels:  npm-package

all-keys Build Status

Get all property keys of an object including non-enumerable and inherited ones

Like Reflect.ownKeys() but traverses up the prototype-chain.

Install

$ npm install all-keys

Usage

const allKeys = require('all-keys');

Object.getOwnPropertyNames(Symbol.prototype);
/*
[
	'constructor',
	'toString',
	'valueOf'
]
*/

allKeys(Symbol.prototype);
/*
Set {
	'constructor',
	'toString',
	'valueOf',
	'toLocaleString',
	'hasOwnProperty',
	'isPrototypeOf',
	'propertyIsEnumerable',
	'__defineGetter__',
	'__lookupGetter__',
	'__defineSetter__',
	'__lookupSetter__',
	'__proto__'
}
*/

API

allKeys(object, options?)

Returns a Set of all property names from object.

object

Type: object

options

Type: object

includeObjectPrototype

Type: boolean
Default: true

Include Object.prototype properties like isPrototypeOf.

includeSymbols

Type: boolean
Default: true

Include Symbol keys.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].