src/project/ProjectModel.js
function _isWelcomeProjectPath(path, welcomeProjectPath, welcomeProjects) {
        if (path === welcomeProjectPath) {
            return true;
        }

        // No match on the current path, and it's not a match if there are no previously known projects
        if (!welcomeProjects) {
            return false;
        }

        var pathNoSlash = FileUtils.stripTrailingSlash(path);  // "welcomeProjects" pref has standardized on no trailing "/"
        return welcomeProjects.indexOf(pathNoSlash) !== -1;
    }
function _isWelcomeProjectPath(path, welcomeProjectPath, welcomeProjects) {
        if (path === welcomeProjectPath) {
            return true;
        }

        // No match on the current path, and it's not a match if there are no previously known projects
        if (!welcomeProjects) {
            return false;
        }

        var pathNoSlash = FileUtils.stripTrailingSlash(path);  // "welcomeProjects" pref has standardized on no trailing "/"
        return welcomeProjects.indexOf(pathNoSlash) !== -1;
    }
function _isWelcomeProjectPath ( path , welcomeProjectPath , welcomeProjects ) { if ( path === welcomeProjectPath ) { return true ; } // No match on the current path, and it's not a match if there are no previously known projects if ( ! welcomeProjects ) { return false ; } var pathNoSlash = FileUtils . stripTrailingSlash ( path ) ; // "welcomeProjects" pref has standardized on no trailing "/" return welcomeProjects . indexOf ( pathNoSlash ) !== - 1 ; }
Returns true if the given path is the same as one of the welcome projects we've previously opened,
or the one for the current build.

@param {string} path Path to check to see if it's a welcome project
@param {string} welcomeProjectPath Current welcome project path
@param {Array.<string>=} welcomeProjects All known welcome projects
Returns true if the given path is the same as one of the welcome projects we ve previously opened or the one for the current build .