3 ms·
Exactly. The right way in this example would be like this (where '>' is a tab and '_' is a space). (For a better readability and ease of edition, I however pre
by Seb-C 5y ago
Exactly. The right way in this example would be like this (where '>' is a tab and '_' is a space).
(For a better readability and ease of edition, I however prefer to actually indent arguments (each on it's line) rather than the suggested alignment, as I show in the second function)
class Something {
>const obj = {
>>somePropName: 1,
>>xyz_________: 2,
>};
>function foo(arg1, arg2, arg3,
>_____________arg4, arg5, arg6) {
>>code
>}
>
>function bar(
>>arg1,
>>arg2,
>>arg3,
>) {
>>code
>}
}