2.0.0 • Published 1 year ago

obj-props v2.0.0

Weekly downloads
44,777
License
MIT
Repository
github
Last release
1 year ago

obj-props

List of properties for JavaScript objects

It's just a JSON file and can be used wherever.

Forked from Sindre Sorhus' proto-props

Install

$ npm install --save obj-props

Usage

import objProps from 'obj-props';

console.log(objProps);
/*
{
	"Array": [
		"arguments",
		"caller",
		"from",
		"isArray",
		"length",
		"name",
		"of",
		"prototype"
	],
	"ArrayBuffer": [
		"arguments",
		"caller",
		"isView",
		"length",
		"name",
		"prototype"
	],
	"Boolean": [
		"arguments",
		"caller",
		"length",
		"name",
		"prototype"
	],
	...
*/

Dev

The JSON file is generated by running:

$ npm run generate

License

MIT © Dustin Specker