Function Filter Data

Run Settings
LanguageJavaScript
Language Version
Run Command
let data = [ { id: 'ryan', project_id: 'property-modern', ready: false }, { id: 'uuiddisini', project_id: 'shila', ready: false }, { id: 'rayen', project_id: 'shila', ready: false }, { id: 'bagas', project_id: 'shila', ready: false } ] function getClientById(uuid) { return data.filter( function(data){ return data.id == uuid } ); } console.log(getClientById('rayen'));
Editor Settings
Theme
Key bindings
Full width
Lines