PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/php/var/is_null.js

http://github.com/kvz/phpjs
JavaScript | 10 lines | 3 code | 1 blank | 6 comment | 0 complexity | a9ec035bb7b6af73bdcef0ec5fa56896 MD5 | raw file
 1module.exports = function is_null (mixedVar) { // eslint-disable-line camelcase
 2  //  discuss at: https://locutus.io/php/is_null/
 3  // original by: Kevin van Zonneveld (https://kvz.io)
 4  //   example 1: is_null('23')
 5  //   returns 1: false
 6  //   example 2: is_null(null)
 7  //   returns 2: true
 8
 9  return (mixedVar === null)
10}