From: karim hamidou Date: Fri, 17 Feb 2012 19:42:45 +0000 (+0100) Subject: new utils file X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8b8737c2432ff9f1d3a27d5ea6cae28d08403178;p=snippets.git new utils file --- 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); +};