Quick actions

cmd+k|ctrl+k

Navigation

Languages

Function Filter Data

Snippet info

Language

JavaScript

Visibility

public

Author

ryandfbasketball12

Created

2022-09-07T03:26:43.717394Z

Updated

2022-09-07T03:26:43.717394Z

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'));
INFO