diff options
-rw-r--r-- | frontends/php/js/common.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/js/common.js b/frontends/php/js/common.js index d7bcb930..1e1e6198 100644 --- a/frontends/php/js/common.js +++ b/frontends/php/js/common.js @@ -47,6 +47,13 @@ function is_string(obj){ return (typeof(obj) == 'string'); } +function is_array(obj) { + if (obj.constructor.toString().indexOf("Array") == -1) + return false; + else + return true; +} + if (!Array.prototype.forEach) { Array.prototype.forEach = function(fun /*, thisp*/) |