4.0.0 • Published 5 months ago

proto-props v4.0.0

Weekly downloads
44,858
License
MIT
Repository
github
Last release
5 months ago

proto-props Build Status

List of prototype properties for JavaScript types

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

Install

$ npm install proto-props

Usage

const prototypeProperties = require('proto-props');

console.log(prototypeProperties);
/*
{
	Array: [
		'length',
		'constructor',
		'toString',
		'toLocaleString',
		'join',
		'pop',
		…
	],
	ArrayBuffer: [
		'constructor',
		'byteLength',
		'slice'
	],
	…
}
*/

Dev

The JSON file is generated by running:

$ npm run make

License

MIT © Sindre Sorhus