8
Boolean conversation using the !! operator.js
source link: https://gist.github.com/gilles-gardet/eec7928512fe558bc920228cf5a53c86
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Boolean conversation using the !! operator.js · GitHub
Instantly share code, notes, and snippets.
// Using !! operator easily convert value in boolean
console. log ('This is not Empty: ', !!'') // This is not Empty: false console. log ('This is not Empty: ', !!'Data') // This is not Empty: true
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK