Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 360

Are arrow functions ok to use? Why doesn't doc examples show them with it's other ES6 syntax?

$
0
0

I have been using arrow functions instead of named functions such as const foo = () > {}; export { foo }. I have not had any issues. Just to confirm, please… this is ok and I am not working off of some side effect to make it appear it is working when it should not?

Also why does the documentation use outdated syntax with named functions? I see doc examples use string templating which is ES6, so why doesn’t the doc examples use arrow functions instead of named functions?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 360

Trending Articles