MCPcopy Create free account
hub / github.com/chakra-ui/panda / getNegativePath

Function getNegativePath

packages/shared/src/split.ts:34–36  ·  view source on GitHub ↗
(path: string[])

Source from the content-addressed store, hash-verified

32}
33
34export function getNegativePath(path: string[]) {
35 return path.slice(0, -1).concat(`-${path.at(-1)}`)
36}
37
38export function getDotPath(obj: any, path: string, fallback?: any): any {
39 if (typeof path !== 'string') return fallback

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected