A Kopchinskiy

- Total activity 20
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 8
- Subscriptions 5
-
A Kopchinskiy commented, -
A Kopchinskiy commented, -
A Kopchinskiy created a post, Object formatting issue
I can't find a way to set object default formatting. For example: I'd like to format objects always like from this: // Sampleconst test = { q: 1, w: 2, e: 3};// Orconst test = { q: 1, w: 2, e... -
-
A Kopchinskiy created a post, Refactor constructor's "this" function statements into class methods
How to convert this: class MyClass { constructor() { this.method = ( x, y ) => { if ( x === 'value' ) { return y; } }; this.method('valu... -
-
A Kopchinskiy created a post, Refactor function positional arguments to named parameters?
Is there is a way to refactor function positional arguments to named parameters? From this: function login( name, pass ) {}login('name', 'pass'); To this: function login( { name, pass } ){}login({ ...