Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ isParentDirectory
Function
isParentDirectory
javascript/0071-simplify-path.js:29–29 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
27
const
isCurrentDirectory = (path) => path ===
'.'
;
28
29
const
isParentDirectory = (path) => path ===
'..'
;
30
31
const
isEmpty = ({ length }) => 0 === length;
Callers
2
canPush
Function · 0.85
canPop
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected