You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Check if value is primitive.
*/
function isPrimitive (value){
return (
typeof value === 'string' ||
typeof value === 'number' ||
// $flow-disable-line
typeof value === 'symbol' ||
typeof value === 'boolean'
)
}
console.log(isPrimitive(100n));
// false
What is expected?
Bigint should be included in the primitive type
What is actually happening?
console.log(isPrimitive(100n));
// false
The text was updated successfully, but these errors were encountered:
Version
2.6.11
Reproduction link
https://codepen.io/Tsdy/pen/mdEaYzL
Steps to reproduce
src/shared/util.js
What is expected?
Bigint should be included in the primitive type
What is actually happening?
console.log(isPrimitive(100n));
// false
The text was updated successfully, but these errors were encountered: