PageRenderTime 27ms CodeModel.GetById 24ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/php/var/is_null.js

https://github.com/andriuspetrauskis/phpjs
JavaScript | 10 lines | 3 code | 1 blank | 6 comment | 0 complexity | 05c16120a265e6f969334501f98f5ccb MD5 | raw file
 1module.exports = function is_null (mixedVar) { // eslint-disable-line camelcase
 2  //  discuss at: http://locutus.io/php/is_null/
 3  // original by: Kevin van Zonneveld (http://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}