We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type of null === 'object'
===
type of NaN === 'number'
const a = BigInt()
type of 1n === 'bigint'
typeof Symbol() === 'symbol'
//判断function typeof funtion test() {} === 'function' //判断Array Object.prototype.toString.call([]) ==='[object Array]' //判断Date console.log(Object.prototype.toString.call(date)) // [object Date] Array.isArray([]) === true //instanceof 运算符用来检测 constructor.prototype 是否存在于参数 object 的原型链上。 object instanceof constructor
The text was updated successfully, but these errors were encountered:
mqyqingfeng/Blog#159 mqyqingfeng/Blog#164
Sorry, something went wrong.
No branches or pull requests
动态和弱类型
原始类型(Undefined、Null、Boolean、Number、BigInt、String 和 Symbol)
type of null === 'object'
, 应用===
判断type of NaN === 'number'
const a = BigInt()
,type of 1n === 'bigint'
typeof Symbol() === 'symbol'
复杂类型(Object)
The text was updated successfully, but these errors were encountered: