src/utils/object.js
function isPathChild(pathA, pathB) {
  const relPath = relative(normalizePath(pathA), normalizePath(pathB));
  return relPath === '..';
}
function isPathChild(pathA, pathB) {
  const relPath = relative(normalizePath(pathA), normalizePath(pathB));
  return relPath === '..';
}
function isPathChild ( pathA , pathB ) { const relPath = relative ( normalizePath ( pathA ) , normalizePath ( pathB ) ) ; return relPath === '..' ; }
Check if one path is a direct child of another.

@param {String} pathA
@param {String} pathB
@return {Boolean}

@example
isPathChild('components/button', 'components');
// true
Check if one path is a direct child of another .