3 ms·
I dont use TS, just vanilla JS mostly. As a vanilla JS user, the pipe operator is much harder to understand from a first glance because its effectively a primit
by jeffybefffy519 4y ago
I dont use TS, just vanilla JS mostly. As a vanilla JS user, the pipe operator is much harder to understand from a first glance because its effectively a primitive being added to the language.
- lf-non 4y agoThere is a js proposal to add this to language: https://github.com/tc39/proposal-pipeline-operator https://github.com/tc39/proposal-pipeline-operator There are few exceptions (namespaces, enums) but typescript has been quite averse to adding non-standard language level features outside type annotations. This feature will likely come to ts after this proposal has been accepted for js.
- pharmakom 4y agoFirefox already supports the pipe operator. There is a Babel transformation for the pipe operator. However, TS does not support it, even as an experimental option.