convert a dot-path to key-path.
dot-path
key-path
import { assertEquals } from "jsr:@std/assert"const my_dotpath = "kill.your.self.2abc.1.tasukete", my_keypath = dotPathToKeyPath(my_dotpath)assertEquals(my_keypath, ["kill", "your", "self", "2abc", 1, "tasukete"]) Copy
import { assertEquals } from "jsr:@std/assert"const my_dotpath = "kill.your.self.2abc.1.tasukete", my_keypath = dotPathToKeyPath(my_dotpath)assertEquals(my_keypath, ["kill", "your", "self", "2abc", 1, "tasukete"])
convert a
dot-path
tokey-path
.Example