paint-brush
Debugging Simple Arrow Functions More Efficientlyby@robertistok
1,252 reads
1,252 reads

Debugging Simple Arrow Functions More Efficiently

by Robert Istok2mJuly 27th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A simple simple arrow function can be used to debug simple arrow functions more efficiently. The function below is a quick way to do it using console.log to log the parameters. It is valid because of how logical operators work in JavaScript. We no longer have to convert our single line arrow function into a multi-line one. The technique is a game-changer when it comes to debugging arrow functions. Let's continue the discussion in the comments section to see what you think of this technique.

Company Mentioned

Mention Thumbnail
featured image - Debugging Simple Arrow Functions More Efficiently
Robert Istok HackerNoon profile picture
Robert Istok

Robert Istok

@robertistok

L O A D I N G
. . . comments & more!

About Author

Robert Istok HackerNoon profile picture
Robert Istok@robertistok

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Buzzsumo
Coffee-web