-
Anytime we have an anonymous function we can convert to an arrow function
```
hello(function () {
});
// becomes
hello(() => {
})
```
-
Hi, I'm using the latest version of Istanbul with the latest version of Mocha. I'm trying to test this code:
```
const validator = require('validator');
const User = require('../user/user.model')…
-
Auto complete the parameters of anonymous functions. JavaScript and most other languages already name the parameters when the function is defined and you can see these names while you are wr…
-
It gives
```
TypeError: Cannot read property 'render' of undefined
```
The problem is that arrow functions don't have a prototype and therefore the stateless component test throws `TypeError`.…
-
**Describe the bug**
I'm not 100% sure whether this is an actual bug, but I decided to create a ticket anyway.
I think sniffer should fail in case run on following code:
**Code sample**
```p…
-
Written on 01/27/2020 13:51:47
URL: https://dmitripavlutin.com/javascript-arrow-functions-best-practices/
-
To simplify a code, it would be nice to have arrow function where possible.
There is a ESLint rule for it: https://eslint.org/docs/latest/rules/arrow-body-style
Draft implementation: https://gi…
-
Add a drop down menu in the settings to select what function will appear in the top right corner of the keyboard (the default being voice to text)
![Screenshot_20240618-195448-950](https://github.com…
-
### Is your feature request related to a problem or challenge?
After #11224, we have `ScalarValue::Map` for `MapArray`. It's better to have a scalar function for it.
### Describe the solution yo…
-
## Is your feature request related to a problem?
Not really. It's more of a "nice to have". I'd like phpcbf to format my arrow functions from this:
```php
$ids = array_map(fn($entity) => $entit…