MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / slice

Method slice

src/List.js:200–210  ·  view source on GitHub ↗
(begin, end)

Source from the content-addressed store, hash-verified

198 // @pragma Iteration
199
200 slice(begin, end) {
201 const size = this.size;
202 if (wholeSlice(begin, end, size)) {
203 return this;
204 }
205 return setListBounds(
206 this,
207 resolveBegin(begin, size),
208 resolveEnd(end, size)
209 );
210 }
211
212 __iterator(type, reverse) {
213 let index = reverse ? this.size : 0;

Callers

nothing calls this directly

Calls 4

wholeSliceFunction · 0.90
resolveBeginFunction · 0.90
resolveEndFunction · 0.90
setListBoundsFunction · 0.85

Tested by

no test coverage detected