-
Hi all, What is the purpose of const { responses: imageUploadResponses, files } = await storeImages(imagesLocation) Are we assigning If yes, then why could we not use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@ManuWeb3 : The purpose of In our So, In that In |
Beta Was this translation helpful? Give feedback.
-
@ManuWeb3 from the const {
storeImages,
storeTokeUriMetadata,
} = require("../utils/uploadToPinata"); |
Beta Was this translation helpful? Give feedback.
-
It is actually really simple: const { responses: imageUploadResponses, files } = await storeImages(imagesLocation) From Then, we are renaming that Why? For convenience and aptness in the specific context which makes it much easier to comprehend. |
Beta Was this translation helpful? Give feedback.
It is actually really simple:
From
storeImages(imagesLocation)
we are extractingresponses
.Then, we are renaming that
responses
toimageUploadResponses
viaresponses: imageUploadResponses
.Why? For convenience and aptness in the specific context which makes it much easier to comprehend.