]> khamidou — GitHub mirrors - snippets.git/commitdiff
new utils file
authorkarim hamidou <khamidou@gmail.com>
Fri, 17 Feb 2012 19:42:45 +0000 (20:42 +0100)
committerkarim hamidou <khamidou@gmail.com>
Fri, 17 Feb 2012 19:42:45 +0000 (20:42 +0100)
Javascript/utils.js [new file with mode: 0644]

diff --git a/Javascript/utils.js b/Javascript/utils.js
new file mode 100644 (file)
index 0000000..a1b8b4d
--- /dev/null
@@ -0,0 +1,3 @@
+null_or_undefined = function(e) {
+    return (typeof(e) === "undefined" && e === null);
+};