get-non-builtin-props
v2.1.0
Published
Get non-builtin properties on the window object
Downloads
7
Readme
get-non-builtin-props
Get non-builtin properties on the window
object
Live demo available at here.
Installation
$ npm install get-non-builtin-props
Usage
import getNonBuiltinProps from 'get-non-builtin-props';
const nonBuiltinProps = getNonBuiltinProps();
const nonBuiltinPropKeys = Object.keys(nonBuiltinProps);
console.log('non-builtin properties', nonBuiltinProps);
console.log('non-builtin property keys', nonBuiltinPropKeys);
// ["React", "ReactDOM", "$", "jQuery", "_"]
import('https://cdn.jsdelivr.net/npm/[email protected]/dist/get-non-builtin-props.esm.js')
.then(({default: getNonBuiltinProps}) => {
console.log(getNonBuiltinProps());
})
.catch((err) => {
console.log(err);
});
License
MIT