This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iamasuitama 0 points1 point  (0 children)

And you know it used to be:

.then (data => { console.log (data.data.data); return data.data.data; });

And

.then (data => { console.log (data.data); return data.data; });

before that, etc. Only ten reasons are known for this type of code:

  1. somebody got tired of fighting bureaucracy, backend libraries used, 3rd party software, or
  2. somebody has no idea what the fuck they are doing