-
변수 뒤에 오는 !는 non-null assertion 연산자로, 해당 expresssion이 null 또는 undefined가 될 수 없다고 단언하는 것이다.
https://stackoverflow.com/questions/42273853/in-typescript-what-is-the-exclamation-mark-bang-operator-when-dereferenci
In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?
When looking at the sourcecode for a tslint rule, I came across the following statement: if (node.parent!.kind === ts.SyntaxKind.ObjectLiteralExpression) { return; } Notice the ! operator after
stackoverflow.com