diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-10 19:17:31 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-10 19:17:31 +0300 |
commit | 269c0fe00715cf2ebf6e7e9f9f8fb6feef5d610d (patch) | |
tree | f203de27e62de24fb97bb78e6676a25fae607ba9 /app/assets/javascripts/lib | |
parent | 1daa133c04532d80c524439fc5ef931daada6303 (diff) |
Replace old isObject for underscore methods
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/type_utility.js | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/app/assets/javascripts/lib/utils/type_utility.js b/app/assets/javascripts/lib/utils/type_utility.js index db62e0be324..be86f336bcd 100644 --- a/app/assets/javascripts/lib/utils/type_utility.js +++ b/app/assets/javascripts/lib/utils/type_utility.js @@ -1,15 +1,2 @@ -/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, no-return-assign, max-len */ -(function() { - (function(w) { - var base; - if (w.gl == null) { - w.gl = {}; - } - if ((base = w.gl).utils == null) { - base.utils = {}; - } - return w.gl.utils.isObject = function(obj) { - return (obj != null) && (obj.constructor === Object); - }; - })(window); -}).call(window); +// eslint-disable-next-line import/prefer-default-export +export const isObject = obj => obj && obj.constructor === Object; |