当前位置:网站首页>JS optional chain
JS optional chain
2022-07-21 16:35:00 【AdleyTales】
const str = undefined
const restr = str?.name ?? "Unknown";
console.log(restr); // "Unknown"
边栏推荐
- Esp8266 nodemcu -- use u8g2 library to light OLED
- Dama Chapter 11 (data warehouse and business intelligence)
- After graduation, the three people in beidatong dormitory went to foreign enterprises, state-owned enterprises and entrepreneurship respectively. What do they regret after 10 years
- Project summary: document management system
- Upload a folder (including subfolders and files) in VSS
- . Net core load assembly assemblyloadcontext
- Several stumbling blocks of it entrepreneurs
- 2022 the 5th China (Jinan) International Youth eye health industry exhibition was held in September
- 2.4 circular statements
- JZ76 删除链表中重复的结点
猜你喜欢
Using go TCP to realize simple online group chat function
Why is sha256 irreversible and how secure is sha256
Dama Chapter 9 (document and content management)
[hardware foundation 4] diode (principle, characteristics, type, circuit analysis)
[tensorflow & pytorch] create tensor learning notes
How to modify the default path of CONDA virtual environment
Use priority queue_ Queue implements unordered to base_ Value filtering of map on value value value
[mqtt from introduction to improvement series | 08] mqtt3.1.1 topic details
Three structures of C language
Source code, complement and fixed-point number operation
随机推荐
Zhaocai meow | jade meow, brother Tai pours ten thousand Liang, a pear flower, a summer rain
i2c client驱动之IIO设备驱动
Five reasons why developers use Klocwork for software security
Xqlla2.3.2 parsing query
L'ipaylinks, un service d'intégration des paiements transfrontaliers, a remporté le prix 3A Asia de l'actif!
This domestic API artifact tool is too strong Let me give up postman
The difference between soft link and hard link and how the file system takes files
Imitate the widget control of VTK, and make the control that draws a rectangle
Difference between service and systemctl / method of modifying path / a command to view IP address, gateway and DNS server
Starfish OS: create a new paradigm of the meta universe with reality as the link
Modify the computer registry and add vscode to the right-click menu
Okaleido tiger NFT is about to log in to binance NFT platform, and the future market continues to be optimistic
JZ24 反转链表
[hardware foundation 4] diode (principle, characteristics, type, circuit analysis)
Source code, complement and fixed-point number operation
In the standard mode, the SQL node of the production environment can perform routine_ sql_ test_ Tianyi conducts sel
[kaggle] how to effectively avoid oom (out of memory) and long alchemy process
How to conduct user retention analysis?
Bank data management measures
Question quotidienne - leetcode1260 - migration de grille 2D - Tableau - Cartographie