summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_null.js
blob: 6883e955aaaee40af48f34d59a032243ddf387e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict";

module.exports = function is_null(mixedVar) {
  // eslint-disable-line camelcase
  //  discuss at: http://locutus.io/php/is_null/
  // original by: Kevin van Zonneveld (http://kvz.io)
  //   example 1: is_null('23')
  //   returns 1: false
  //   example 2: is_null(null)
  //   returns 2: true

  return mixedVar === null;
};
//# sourceMappingURL=is_null.js.map