Skip to content

Commit 4e08ea5

Browse files
authored
Merge pull request #341 from knockout/pc/use_const_max_int
Replace hardcoded MAX_LIST_SIZE with Number.MAX_SAFE_INTEGER
2 parents 858b7fc + 1b8a062 commit 4e08ea5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/binding.foreach/src/foreach.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { contextFor, applyBindingsToDescendants, AsyncBindingHandler } from '@tk
2424
import type { AllBindings } from '@tko/bind'
2525

2626
// Utilities
27-
const MAX_LIST_SIZE = 9007199254740991
27+
const MAX_LIST_SIZE = Number.MAX_SAFE_INTEGER
2828

2929
// from https://github.com/jonschlinkert/is-plain-object
3030
function isPlainObject(o): o is Record<string, any> {

0 commit comments

Comments
 (0)