MCPcopy Index your code
hub / github.com/postcss/postcss / addIndex

Function addIndex

test/visitor.test.ts:27–31  ·  view source on GitHub ↗
(array: any[][])

Source from the content-addressed store, hash-verified

25}
26
27function addIndex(array: any[][]): any[][] {
28 return array.map((i, index) => {
29 return [index, ...i]
30 })
31}
32
33function buildVisitor(): [[string, string][], Plugin] {
34 let visits: [string, string][] = []

Callers 1

visitor.test.tsFile · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…