A better written data method
? Writing that extra line that just has a return statement to return an object in my Vue component's data() method feels really bad every time.
— wetbread (@DCoulbourne) September 20, 2018
(Not to mention that data() is a method, not just an object ?)
So I found a way to trim 2 lines using arrow functions ? pic.twitter.com/Qmlil4mqHD
Read more [twitter.com]