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

Function isOkV1

__tests__/List.ts:753–758  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

751
752 // execute the same test as `v` but for the 2000 first integers
753 const isOkV1 = (v: number): boolean =>
754 List.of()
755 .set(v, v)
756 .push('pushed-value')
757 .insert(33, 'inserted-value')
758 .filter((item) => item === v).size === 1;
759
760 const arr = new Array(2000).fill(null).map((_, v) => v);
761

Callers 1

List.tsFile · 0.85

Calls 5

filterMethod · 0.65
insertMethod · 0.65
pushMethod · 0.65
setMethod · 0.65
ofMethod · 0.45

Tested by

no test coverage detected