MCPcopy
hub / github.com/immutable-js/immutable-js / assertNotInfinite

Function assertNotInfinite

src/utils/assertNotInfinite.ts:3–8  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

1import invariant from './invariant';
2
3export default function assertNotInfinite(size: number): void {
4 invariant(
5 size !== Infinity,
6 'Cannot perform this action with an infinite size.'
7 );
8}

Callers 13

pushAllMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
reduceFunction · 0.85
constructorMethod · 0.85
toArrayFunction · 0.85
everyFunction · 0.85
forEachFunction · 0.85
joinFunction · 0.85
someFunction · 0.85
constructorMethod · 0.85

Calls 1

invariantFunction · 0.85

Tested by

no test coverage detected