Created
March 30, 2026 11:53
-
-
Save goofballLogic/2b545bf5f710fd65da53ce6cd5d207e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const resolvePath = (fs, path, ...visited) => | |
| visited.includes(path) | |
| ? null | |
| : fs[path] | |
| ? resolvePath(fs, fs[path], path, ...visited) | |
| : path | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment