0
Example:
this.autenticator.logarExemplo(form.nome, form.senha,
usuario.idx, usuario.idy, !!usuario.login).subscribe(
executar tarefas;
);
- What would be the !! ?
- This symbol belongs to Typescript exclusively?
- Has any relation to the symbol || (or) ?
Very cool! But what the need to use it then if I’m basically saying that x will be the same thing it already is. And another question: !! is used only for boleanos values?
– victor
Sometimes you need to check any structure as boolean, like a string in Javascript, since 'text of any size' is true and double or single quotes without anything is false. Not to pass the whole structure to the check you deny the first time to make the boolean value and consume less resources and deny the second not to modify the expected result.
– Benilson