MCPcopy Create free account
hub / github.com/breck7/scroll / toggle

Method toggle

external/.scrollLibs.js:14232–14235  ·  view source on GitHub ↗
(currentValue, values)

Source from the content-addressed store, hash-verified

14230 return arr[index + 1]
14231 }
14232 static toggle(currentValue, values) {
14233 const index = values.indexOf(currentValue)
14234 return index === -1 || index + 1 === values.length ? values[0] : values[index + 1]
14235 }
14236 static getClassNameFromFilePath(filepath) {
14237 return this.removeFileExtension(this.getFileName(filepath))
14238 }

Callers 1

addExpandButtonsMethod · 0.45

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected