This Repo aims to introduce and share the light JS lang hand writing about awesome JS features. And TS may be involved in some cases.
feature/xxx-xxx-yyyyMMdd
for new feature or update features.
hotfix/xxx-xxx-yyyyMMdd
for fixing issues.
doc/xxx-xxx-yyyyMMdd
for documents enhancement.
-
file name should be like
xxx-xxx-xx.xx
. -
class name should be Uppercase.
-
function name should be lowercase.
-
use single quote.
-
throw err firstly, like below.
function saveData(data) { const status = callRequestToSaveData(data); if (status === 'error') return; // To do the next steps. }
-
declare interface for
TS
model. -
do not use any for typechecking in
TS
. -
take care for unsubscribe hot observable.
-
take care for clear cache leaking operation like
setTimeout
orsetInterval
. -
coding with well folder structure like project angular chart.
- call
- apply
- bind
- EventEmitter
- debounce
- throttle
- promise
- rxjs
- zone.js