MCPcopy Create free account
hub / github.com/electerious/basicSlider / _next

Function _next

src/scripts/main.js:250–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248
249 // Navigate to the next slide
250 const _next = () => {
251
252 // Store old index before modifying the counter
253 const oldIndex = c()
254 const newIndex = c(1)
255
256 _goto(newIndex, oldIndex)
257
258 }
259
260 // Assign instance to a variable so the instance can be used
261 // elsewhere in the current function.

Callers

nothing calls this directly

Calls 1

_gotoFunction · 0.85

Tested by

no test coverage detected