Skip to content

Commit

Permalink
fix to-set-like final return -> better error message for obsolete v…
Browse files Browse the repository at this point in the history
…ersions of `Set` helpers
  • Loading branch information
zloirock committed Mar 8, 2023
1 parent ce955d0 commit 8e5c031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/to-set-like.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ var isSetLike = function (it) {
// fallback old -> new set methods proposal arguments
module.exports = function (it) {
if (isSetLike(it)) return it;
if (isIterable(it)) return new Set(it);
return isIterable(it) ? new Set(it) : it;
};

0 comments on commit 8e5c031

Please sign in to comment.