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

Method slice

src/Repeat.js:45–53  ·  view source on GitHub ↗
(begin, end)

Source from the content-addressed store, hash-verified

43 }
44
45 slice(begin, end) {
46 const size = this.size;
47 return wholeSlice(begin, end, size)
48 ? this
49 : new Repeat(
50 this._value,
51 resolveEnd(end, size) - resolveBegin(begin, size)
52 );
53 }
54
55 reverse() {
56 return this;

Callers

nothing calls this directly

Calls 3

wholeSliceFunction · 0.90
resolveEndFunction · 0.90
resolveBeginFunction · 0.90

Tested by

no test coverage detected