MCPcopy Create free account
hub / github.com/pacexy/flow / updateIndex

Function updateIndex

apps/reader/src/models/reader.ts:18–21  ·  view source on GitHub ↗
(array: any[], deletedItemIndex: number)

Source from the content-addressed store, hash-verified

16import { dfs, find, INode } from './tree'
17
18function updateIndex(array: any[], deletedItemIndex: number) {
19 const last = array.length - 1
20 return deletedItemIndex > last ? last : deletedItemIndex
21}
22
23export function compareHref(
24 sectionHref: string | undefined,

Callers 2

removeTabMethod · 0.85
removeGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected