From 8b8737c2432ff9f1d3a27d5ea6cae28d08403178 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Fri, 17 Feb 2012 20:42:45 +0100 Subject: [PATCH] new utils file --- Javascript/utils.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Javascript/utils.js diff --git a/Javascript/utils.js b/Javascript/utils.js new file mode 100644 index 0000000..a1b8b4d --- /dev/null +++ b/Javascript/utils.js @@ -0,0 +1,3 @@ +null_or_undefined = function(e) { + return (typeof(e) === "undefined" && e === null); +}; -- 2.43.0