Typescript¶
Reference¶
- TypeScript Cheatsheet
- Learn X in Y minutes
- TypeScript Handbook
- Why TypeScript
- pluralsight typescript course
- https://github.com/Microsoft/TypeScript/wiki
- https://github.com/basarat/typescript-book
- https://basarat.gitbooks.io/typescript/content/docs/getting-started.html
- https://www.gitbook.com/book/basarat/typescript/details
- https://codewich.com/
- https://github.com/lakshaydulani/typescript-summary
- https://github.com/netdur/typescript-design-patterns
- clean-code-typescript
Typescript Version for SPFx¶
Tutorial¶
- http://dotnetdetail.com/learn-typescript-from-basic/
- http://dotnetdetail.com/learn-typescript-step-by-step-with-suitable-example/
Library¶
Typings¶
Code Snippets¶
isEmptyString¶
/**
* Check if the value is null, undefined or empty
*
* @param value
*/
private _isEmptyString(value: string): boolean {
return value === null || typeof value === "undefined" || !value.length;
}
_isNull¶
/**
* Check if the value is null or undefined
*
* @param value
*/
private _isNull(value: any): boolean {
return value === null || typeof value === "undefined";
}