summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_null.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/var/is_null.js')
-rw-r--r--node_modules/locutus/php/var/is_null.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/locutus/php/var/is_null.js b/node_modules/locutus/php/var/is_null.js
new file mode 100644
index 0000000..6883e95
--- /dev/null
+++ b/node_modules/locutus/php/var/is_null.js
@@ -0,0 +1,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 \ No newline at end of file