MCPcopy Create free account
hub / github.com/cosdensolutions/code / fetchUsers

Function fetchUsers

videos/long/custom-react-hooks-useDebounce/utils.tsx:16–21  ·  view source on GitHub ↗
(search: string)

Source from the content-addressed store, hash-verified

14
15// Fake function mocking an api
16export const fetchUsers = async (search: string) => {
17 await new Promise((resolve) => setTimeout(resolve, 1000));
18 return users.filter((user) =>
19 user.name.toLowerCase().includes(search.toLowerCase()),
20 );
21};

Callers 1

loadUsersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected