function isAbsolute(path) {
  assertPath(path);
  const len = path.length;
  if (len === 0) return false;
  const code = path.charCodeAt(0);
  if (isPathSeparator(code)) {
    return true;
  } else if (isWindowsDeviceRoot(code)) {
    // Possible device root
    if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
      if (isPathSeparator(path.charCodeAt(2))) return true;
    }
  }
  return false;
}
/**
 * Verifies whether path is absolute
 * @param path to verify
 */
Verifies whether path is absolute
@param path to verify
Verifies whether path is absolute @param path to verify
function isAbsolute(path) {
  assertPath(path);
  const len = path.length;
  if (len === 0) return false;
  const code = path.charCodeAt(0);
  if (isPathSeparator(code)) {
    return true;
  } else if (isWindowsDeviceRoot(code)) {
    if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
      if (isPathSeparator(path.charCodeAt(2))) return true;
    }
  }
  return false;
}
function isAbsolute ( path ) { assertPath ( path ) ; const len = path . length ; if ( len === 0 ) return false ; const code = path . charCodeAt ( 0 ) ; if ( isPathSeparator ( code ) ) { return true ; } else if ( isWindowsDeviceRoot ( code ) ) { if ( len > 2 && path . charCodeAt ( 1 ) === CHAR_COLON ) { if ( isPathSeparator ( path . charCodeAt ( 2 ) ) ) return true ; } } return false ; }
Verifies whether path is absolute
 @param path to verify
Verifies whether path is absolute @param path to verify
// Possible device root