Andrey Smolko

Andrey Smolko @smlka

About: Software Engineer at Wärtsilä

Location:
Belgrade
Joined:
May 3, 2020

Andrey Smolko
articles - 10 total

Dynamic Fluent Interface for API calls (Powered by JS Proxy)

When working with REST APIs, having a clean, expressive client can greatly simplify how you write...

Learn More 1 0Jun 29

Merge array-like objects by Array.prototype.concat()

Let's dive into the Array.prototype.concat() method in JavaScript. This handy method helps you merge...

Learn More 8 0Jun 27 '24

Fun with Array.prototype.fill()

Recently, I came across the following code snippet: const arr = new...

Learn More 8 0Jun 25 '24

How to protect a JS array against truncation

Disclaimer: There are several options how to truncate an array in JS but here I would like to talk...

Learn More 6 0Aug 29 '22

Strive for a minimum required state in a React component

Keep a component state as minimal as possible and avoid unnecessary state synchronization . 🚫 Before...

Learn More 10 4Aug 27 '22

Does JS function's 'this' have a default value?

Disclaimer There are 1000000 articles about this in JS. I think it is perfectly fine to...

Learn More 43 3Aug 9 '22

Wrap a JS function transparently

A wrapper function (aka a high order function) is a great way to augment a behavior of your other...

Learn More 41 9Aug 2 '22

The hidden scope of a named function expression

There are several syntaxes to create a function in JavaScript. One of them is called function...

Learn More 22 0Jan 25 '22

Function with duplicate parameters. Your turn, JS!

Assertion: We are in parallel universe where all weird code snippets may exist and be used. Let's im...

Learn More 16 0Aug 18 '20

How does setTimeout invoke a callback function in a browser?

Assertion: JavaScript is executed in a browser (but not in a web worker). Everyone in JavaScript wor...

Learn More 26 1May 3 '20