I am working on a project in which we use the optional chain operator (aka the Elvis operator):
const baz = new obj?.foo?.bar?.baz()
Is this a way to get WebStorm to understand this?
PS This is part of the first proposal stage-1: https://github.com/tc39/proposal-optional-chaining.
stage-1
Here is the problem about this https://youtrack.jetbrains.com/issue/WEB-27592 . It seems to be allowed, so we can wait for the function in the next build.
(2018.3.4) -, . ?
Source: https://habr.com/ru/post/1684384/More articles:Difference between export, indirect export, requirements and indirect requirements in Java9? - java-9Does BigQuery support NUMERIC and DECIMAL data types defined in ANSI SQL 2011? - google-bigqueryWeighted random sampling from a 2d numpy array - pythonHow to return the last value to a vector that satisfies a certain condition - rUse the toggle button with Haskell and Glade - haskellSeamless alignment with different types, but with the same labels - scalaCannot remove diacritics from file name - javascriptMd-menu closes after pressing md-tab inside - htmlHack authentication usind response-dev-tools - authenticationHow to reduce the size of a .git folder with a huge commit history? - gitAll Articles