MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / requestData

Function requestData

assets/js/WikiSearch.js:174–182  ·  view source on GitHub ↗
(searchString)

Source from the content-addressed store, hash-verified

172};
173
174const requestData = async (searchString) => {
175 try {
176 const response = await fetch(searchString);
177 const data = await response.json();
178 return data;
179 } catch (err) {
180 console.error(err);
181 }
182};
183
184const processWikiResults = (results) => {
185 const resultArray = [];

Callers 1

retrieveSearchResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected