Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getData = async (): Promise<any> => {
- const response = await axios.get(`https://xxxx`);
- const data = response.data;
- const names = data?.map((inside: any) => {
- return {
- firstName: inside?.firstName,
- surName: inside?.surName.toUpperCase(),
- };
- });
- return names;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement