Skip to content

Commit

Permalink
Fix polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Nov 6, 2024
1 parent b0beb3a commit 845f6bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
store results of trading block in database
- blog
- clear if you don't have all your assets
- warning if asset traded
- warning if AI team no longer wants to make trade
- https://old.reddit.com/r/BasketballGM/comments/xsglap/monthly_suggestions_thread/iqkeufr/
- test in old browsers (set isSubsetOf)

hype should impact the magnitude of the home court advantage

support sorting mobile trade tables (like saved trades, trading block)
Expand Down
6 changes: 3 additions & 3 deletions src/common/polyfills-modern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const toPolyfillTransform: (
// https://github.com/rauschma/set-methods-polyfill/blob/894c17391303aec7190801636c64465f653479d8/src/library.ts
if (!Set.prototype.isSubsetOf) {
Object.defineProperty(Set.prototype, "isSubsetOf", {
value: function <T>(a: Set<T>, b: Set<T>): boolean {
for (const elem of a) {
if (!b.has(elem)) {
value: function <T>(this: Set<T>, other: Set<T>): boolean {
for (const elem of this) {
if (!other.has(elem)) {
return false;
}
}
Expand Down

0 comments on commit 845f6bb

Please sign in to comment.