HTML/js/ai-admin.js
//find the member identified by _id in the array of JSON objects identified by _list
find the member identified by _id in the array of JSON objects identified by _list
find the member identified by _id in the array of JSON objects identified by _list
function findMember(_id, _list)
{
    let _mem = {'id': _id, 'companyName': 'not found'};
    for (let each in _list){(function(_idx, _arr)
    {
        if (_arr[_idx].id === _id)
        {_mem = _arr[_idx]; }
    })(each, _list);}
    return(_mem);
}
function findMember ( _id , _list ) { let _mem = { 'id' : _id , 'companyName' : 'not found' } ; for ( let each in _list ) { ( function ( _idx , _arr ) { if ( _arr [ _idx ] . id === _id ) { _mem = _arr [ _idx ] ; } } ) ( each , _list ) ; } return ( _mem ) ; }
find the member identified by _id in the array of JSON objects identified by _list
find the member identified by _id in the array of JSON objects identified by _list