question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set, WeakSet, Map and WeakMap should be in the default env

See original GitHub issue

I believe that these built-in collection types should be included in the default env

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
Avaqcommented, Mar 6, 2018

However, it isn’t the responsibility of a lib to anticipate all these errors. If you make a mistake you have to deal with the consequences

That’s the point I was trying to make, but sprinkled with some of my personal pains with regards to these new features. 😛

1reaction
Avaqcommented, Mar 2, 2018

Is this [the] reasoning sound?

I can confirm that this is the sound of reasoning.

(just kidding, yes it’s sound)

Read more comments on GitHub >

github_iconTop Results From Across the Web

WeakMap and WeakSet - The Modern JavaScript Tutorial
WeakSet is Set -like collection that stores only objects and removes them once they become inaccessible by other means.
Read more >
JavaScript WeakMap and WeakSet - W3docs
In this chapter, we covered WeakMap and WeakSet. To sum up, we can state that WeakMap is considered a Map-like collection, allowing merely...
Read more >
WeakMap and WeakSet: Understanding JavaScript weak ...
Learn about weak references in JavaScript and how we can use them by utilizing the WeakMap and WeakSet objects.
Read more >
Map, Set, WeakMap and WeakSet in Javascript - Medium
The Map holds key-value pairs. Remembers the original insertion order and any value (objects or primitive values) may be used a key or...
Read more >
ES6 Collections: Using Map, Set, WeakMap, WeakSet
ES6 introduces four new data structures that will add power and expressiveness to the language: Map , Set , WeakSet , and WeakMap...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found