Yield each part of input, splitting a string path on non-word characters.
input
[...pathParts('a.b[0]')]; // ['a', 'b', '0'] Copy
[...pathParts('a.b[0]')]; // ['a', 'b', '0']
Yield each part of
input, splitting a string path on non-word characters.