Converts the given string into an object property path array.
Syntax
TypeScript
import { toPath } from '@opentf/std'; toPath(str: string): (string | number)[]
Examples
TypeScript
toPath('a[0].b.c') //=> ['a', 0, 'b', 'c']
Converts the given string into an object property path array.
import { toPath } from '@opentf/std'; toPath(str: string): (string | number)[]
toPath('a[0].b.c') //=> ['a', 0, 'b', 'c']