a key-path is an array of one or more string keys (number keys work too).
key-path
const data = { kill: { your: { self: [0, 1, { 0: 0, 1: { noice: "YAHAHA", 0: "you found me!" } }] } } }const possible_keypath: KeyPath = ["kill", "your", "self", 2, "1"] Copy
const data = { kill: { your: { self: [0, 1, { 0: 0, 1: { noice: "YAHAHA", 0: "you found me!" } }] } } }const possible_keypath: KeyPath = ["kill", "your", "self", 2, "1"]
a
key-path
is an array of one or more string keys (number keys work too).