UNPKG

220 BJavaScriptView Raw
1export default function removeAllSlides() {
2 const swiper = this;
3 const slidesIndexes = [];
4
5 for (let i = 0; i < swiper.slides.length; i += 1) {
6 slidesIndexes.push(i);
7 }
8
9 swiper.removeSlide(slidesIndexes);
10}
\No newline at end of file