What does $ sign at the end of function name indicate?

前端 未结 4 1593
自闭症患者
自闭症患者 2020-12-24 05:12

Here is the code I\'m reviewing...

import { Observable } from \'rxjs/Rx\';
// reducer
import { playerRegister, PlayerState } from \'./player\';
export functi         


        
4条回答
  •  不思量自难忘°
    2020-12-24 05:41

    Syntactically, the dollar ($) character has no special meaning in JavaScript identifiers.

    It is, however, sometimes used by convention to indicate that a variable holds an Observable or that a function will return an Observable.

提交回复
热议问题