MCPcopy
hub / github.com/Splidejs/splide / getAt

Function getAt

src/js/components/Slides/Slides.ts:165–167  ·  view source on GitHub ↗

* Returns a Slide object at the specified index. * * @param index - A slide index. * * @return A Slide object if available, or otherwise `undefined`.

( index: number )

Source from the content-addressed store, hash-verified

163 * @return A Slide object if available, or otherwise `undefined`.
164 */
165 function getAt( index: number ): SlideComponent | undefined {
166 return filter( index )[ 0 ];
167 }
168
169 /**
170 * Inserts a slide or slides at a specified index.

Callers 4

slideSizeFunction · 0.50
totalSizeFunction · 0.50
getGapFunction · 0.50
add.test.tsFile · 0.50

Calls 1

filterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…