MCPcopy Index your code
hub / github.com/refined-github/refined-github / getMiddleStep

Function getMiddleStep

source/helpers/bisect.tsx:30–30  ·  view source on GitHub ↗
(list: any[])

Source from the content-addressed store, hash-verified

28// Bisecting 2 features: enable 1
29// Bisecting 1 feature: enable 0 // This is the last step, if the user says Yes, it's not caused by a JS feature
30const getMiddleStep = (list: any[]): number => Math.floor(list.length / 2);
31
32async function onEndButtonClick(): Promise<void> {
33 await state.delete();

Callers 2

onChoiceButtonClickFunction · 0.85
bisectFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected