handleAllLocationsDelete(locs) {
    let notCenterLocs = locs.filter(loc => loc.is_center == false)
    for (var i = 0; i < notCenterLocs.length; i++) {
        this.handleLocationDelete(notCenterLocs[i]);
    }
}
/**
* Event handler used to delete all locations except ones designated as center from the database when the 
* user clicks on the delete all button.
* @param {Object} locs the array of locations to be deleted.
*/
Event handler used to delete all locations except ones designated as center from the database when the
user clicks on the delete all button.
Event handler used to delete all locations except ones designated as center from the database when the user clicks on the delete all button .
handleAllLocationsDelete(locs) {
    let notCenterLocs = locs.filter(loc => loc.is_center == false)
    for (var i = 0; i < notCenterLocs.length; i++) {
        this.handleLocationDelete(notCenterLocs[i]);
    }
}
handleAllLocationsDelete ( locs ) { let notCenterLocs = locs . filter ( loc => loc . is_center == false ) for ( var i = 0 ; i < notCenterLocs . length ; i ++ ) { this . handleLocationDelete ( notCenterLocs [ i ] ) ; } }
Event handler used to delete all locations except ones designated as center from the database when the
user clicks on the delete all button.
Event handler used to delete all locations except ones designated as center from the database when the user clicks on the delete all button .