ð¼ ã¯ããã« çãã㯠Javascript ã§ããå¤ã boolean ã«å¤æããã¨ãã©ãããæ¹æ³ã使ãã¾ããï¼ãã使ãããæ¹æ³ã¯!!ï¼äºéå¦å®ã»Double negationï¼ããBoolean()ã ã¨æãã¾ãã const hello = Boolean("hello"); // true const world = !!"world" // true Typescript ã®ãã³ãããã¯ã§ããã®ï¼ã¤ãç´¹ä»ãã¦ã¾ãã You can always coerce values to booleans by running them through the Boolean function, or by using the shorter double-Boolean negation. ãã¡ããåã®è¦³ç¹ã§ã¯ã!!ã使ã£ããåãtrueãfalseã«ãªããBoolean()é¢æ°ã使ã£ã
{{#tags}}- {{label}}
{{/tags}}