summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_bool.js.map
blob: 237b87ec2885a55479c1ee50540008ace031d2c6 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/var/is_bool.js"],"names":["module","exports","is_bool","mixedVar"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,QAAlB,EAA4B;AAAE;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAQA,aAAa,IAAb,IAAqBA,aAAa,KAA1C,CAT2C,CASM;AAClD,CAVD","file":"is_bool.js","sourcesContent":["module.exports = function is_bool (mixedVar) { // eslint-disable-line camelcase\n  //  discuss at: http://locutus.io/php/is_bool/\n  // original by: Onno Marsman (https://twitter.com/onnomarsman)\n  // improved by: CoursesWeb (http://www.coursesweb.net/)\n  //   example 1: is_bool(false)\n  //   returns 1: true\n  //   example 2: is_bool(0)\n  //   returns 2: false\n\n  return (mixedVar === true || mixedVar === false) // Faster (in FF) than type checking\n}\n"]}