MCPcopy 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

27const isCurrentDirectory = (path) => path === '.';
28
29const isParentDirectory = (path) => path === '..';
30
31const isEmpty = ({ length }) => 0 === length;

Callers 2

canPushFunction · 0.85
canPopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected