DEV Community

loading...
Andrea Simone Costa profile picture

Andrea Simone Costa

I write JavaScript code, mostly.

Location Carrara, Italy Joined Joined on  github website twitter website

Work

Frontend developer

All 31 comments

What's the one thing you always need to google?

random numbers generation, between two desired ones

Advanced TypeScript Exercises - Question 9

My first solution :D type NEA<T> = [T, ...T[]]

Advanced TypeScript Exercises - Answer 1

You're welcome 😃

Advanced TypeScript Exercises - Question 8

What about: const concatToField = <K extends keyof T...

Advanced TypeScript Exercises - Answer 3

function f(...[a,b]: string[] | number[]) { if (typeof a ...

Advanced TypeScript Exercises - Answer 1

I only discovered you, and your series, recently (this mornin...

The shortest way to conditional insert properties into an object literal

Thanks!

JavaScript Iterators and Generators: Synchronous Iterators

:)

JavaScript Iterators and Generators: Asynchronous Iterators

Uh I've totally misunderstood your previous message! Yes y...

JavaScript Iterators and Generators: Asynchronous Iterators

It could seem a stupid answer but I strongly believe in wel...

JavaScript Iterators and Generators: Asynchronous Generators

Do you know IxJS?

JavaScript Iterators and Generators: Asynchronous Iterators

Yes, but async gens are the argument of the next article eh...

JavaScript Iterators and Generators: Asynchronous Iterators

Yes of course. I've already briefly mentioned it into the '...

JavaScript Iterators and Generators: Asynchronous Iterators

Thanks, I'm glad you liked the article 😃 Generally, the as...

The shortest way to conditional insert properties into an object literal

I completely agree with you.

The shortest way to conditional insert properties into an object literal

But it wouldn't be the shortest anymore ;)

The shortest way to conditional insert properties into an object literal

Google rest/spread operators 😆

What was your win this week?

This week, I wrote my second article in english and both no...

The shortest way to conditional insert properties into an object literal

You're welcome!

The shortest way to conditional insert properties into an object literal

No problems 😃! See you at the DevFest, with peaceful inten...

The shortest way to conditional insert properties into an object literal

You centered the point, thank you for intervening! P.S. I ...

The shortest way to conditional insert properties into an object literal

I do love find alternative ways to do common things 😆, I'm ...

The shortest way to conditional insert properties into an object literal

So there is no point to use the trick in this way if 0 is a...

The shortest way to conditional insert properties into an object literal

I think you will understand that this is beyond the scope o...

The shortest way to conditional insert properties into an object literal

I've already expressed mine opinion here around, and to be ...

The shortest way to conditional insert properties into an object literal

The shortest way means only one thing: fewer characters are...

The shortest way to conditional insert properties into an object literal

You're welcome!

The shortest way to conditional insert properties into an object literal

I completely disagree because lot of JS syntax and features n...

The shortest way to conditional insert properties into an object literal

Thank you!

Welcome Thread - v19

Hi to everyone, I'm a frontend developer from Italy!

loading...