When extracting values from objects or arrays, we used to write it like this. const user = { name: "田中", age: 25, city: "東京" }; const { name, age } = user; console.log(name); // 田中 console.log(age); / ...
I write about TypeScript, React, and Node.js. Exploring real-time rendering and Elixir in spare time. In JavaScript and TypeScript, you can define a function either using function keyword or ...
Destructuring is one of my favorite tools in JavaScript, in simple terms, destructuring allows you to break down a complex structure (like an array or an object) into simpler parts, though there’s a ...
There are many ways in which JavaScript's approach is different from standard, run of the mill, class-based languages, but some of them go unnoticed. Take the whole subject of parameter passing - ...
The latest ECMA standard for JavaScript (ECMAScript 6) makes JavaScript more readable by encouraging a more declarative style with functional constructs and new operators. One of my favourite ES6 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results