Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queryObjects(WebSocket);
- /*
- If the above returns an empty array...
- ...try executing `new WebSocket('wss://url')` beforehand
- */
- // Discover all Promise objects
- queryObjects(Promise);
- // Also works with user-defined constructors
- class Person {};
- new Person();
- queryObjects(Person);
Add Comment
Please, Sign In to add comment