• JMap.Project.getAllProjects

    Returns a promise that returns all JMap projects descriptors when resolved.

    If no project is loaded, returns empty array.

    Returns Promise<JProject[]>

    Example

    // This is asynchronous code, getAllProject returns a promise that is
    // resolved after the server returned all project data.
    JMap.Project
    .getAllProjects()
    .then(projects => {
    // Here you can start using the projects
    console.log(`Projects count = "${projects.length}"`
    }))