I have seen this in javascript but have no idea what it does. can someone explain? and before you say "google it". I have tried and I cannot see any results for it
return {
[API]: {
data: { someData },
anotherKey: true,
}
I know API
is a string from the code I'm looking at but I'm not sure what this is doing
I'm used to just seeing an object returned like this.
return {
key: value
}
can someone please enlighten me? happy to read docs/videos etc. just honestly not sure what to google to find them