A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tc39/proposal-optional-chaining/issues/55 below:

Optional spread syntax · Issue #55 · tc39/proposal-optional-chaining · GitHub

Spread for arrays and function calls is not null-safe (though it is for object spread).

It'd be very convenient to write them as:

const arr = [...?listOne, ...?listTwo];
foo(...?args);

Instead of:

const arr = [...listOne || [], ...listTwo || []];
foo(...args || []);

ScottRudiger, yvele, davidspiess, tizmagik, paterasMSFT and 20 moreMaxmaxmaximusAWS


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4