首页 > 解决方案 > 这个运算符是什么意思 !!~ 在 Typescript 中?

问题描述

这个运算符!!~在打字稿中是什么意思?它是按位运算符和 NOT 运算符的组合吗?

例如return strict ? term === strValue : !!~strValue.indexOf(term);

标签: typescriptoperatorsoperator-keyword

解决方案


推荐阅读