app/static/scripts/globalScripts.js
// loops the person array and returns the person object
loops the person array and returns the person object
loops the person array and returns the person object
function person_from_id(id) {
    var i;
    var len = PERSON_ARRAY.length;
    for ( i = 0; i < len; i++ ) {
        if(PERSON_ARRAY[i].id == id) {
            return PERSON_ARRAY[i]
        }
    }
}
function person_from_id ( id ) { var i ; var len = PERSON_ARRAY . length ; for ( i = 0 ; i < len ; i ++ ) { if ( PERSON_ARRAY [ i ] . id == id ) { return PERSON_ARRAY [ i ] } } }
loops the person array and returns the person object
loops the person array and returns the person object