Skip to content

Instantly share code, notes, and snippets.

@eddieantonio
Last active May 18, 2020 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddieantonio/67543aa00ae3ac493a3896d7dae84957 to your computer and use it in GitHub Desktop.
Save eddieantonio/67543aa00ae3ac493a3896d7dae84957 to your computer and use it in GitHub Desktop.
Object.defineProperty(Set.prototype, 'addAll', {
enumerable: false,
configurable: false,
value: function (iterable) {
for (let item of iterable) {
this.add(item);
}
return this;
}
});
@MichaelBuhler
Copy link

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment