object-info
v0.1.0
Published
To get info of objects
Downloads
2
Readme
object-ext
Usage
const {
getInfo,
setLazyAccessor
} = require('object-ext');
const object1 = ... // something
console.log(getInfo(object1));
setLazyAccessor(
object1, // target
'lasyProperty', // property name
() => Date.now() // getter
);
Example output (getInfo)
{
entries: [ {} ],
internalFields: [],
className: 'WeakSet',
id: 961779,
external: null,
isCallable: false,
isConstructor: false,
isApiWrapper: false,
hasIndexedLookupInterceptor: false,
hasNamedLookupInterceptor: false
}