lib/copy-sync/copy-sync.js
function isSrcSubdir (src, dest) {
  const srcArray = path.resolve(src).split(path.sep)
  const destArray = path.resolve(dest).split(path.sep)
  return srcArray.reduce((acc, current, i) => acc && destArray[i] === current, true)
}
function isSrcSubdir (src, dest) {
  const srcArray = path.resolve(src).split(path.sep)
  const destArray = path.resolve(dest).split(path.sep)
  return srcArray.reduce((acc, current, i) => acc && destArray[i] === current, true)
}
function isSrcSubdir ( src , dest ) { const srcArray = path . resolve ( src ) . split ( path . sep ) const destArray = path . resolve ( dest ) . split ( path . sep ) return srcArray . reduce ( ( acc , current , i ) => acc && destArray [ i ] === current , true ) }
return true if dest is a subdir of src, otherwise false.
return true if dest is a subdir of src otherwise false .