Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jun 23, 2024
1 parent 07c68c0 commit 6003676
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"globalThis": "readonly"
},
"rules": {
"prefer-spread": "off",
"no-console": "off",
"no-useless-escape": "off",
"no-undef": "warn",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { NotFound } from './errors.js'

// Thoroughly tested, faster than both spread and concat w/ high No. of items.
export const fastMerge = <T>(original: T[], args: T[]) => {
original.push.apply(args)
original.push.apply(original, args)
return original
}

Expand Down
2 changes: 1 addition & 1 deletion tests/squaremap/nations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ describe('[Squaremap/Aurora] Nations', () => {
assertType<Nation | Nation[]>(nation)

expect(nation.name).toBe('Madagascar')
console.log(nation)
console.log(nation.residents.length)
})
})

0 comments on commit 6003676

Please sign in to comment.