diff options
Diffstat (limited to 'node_modules/moment/src/lib/utils/is-object.js')
-rw-r--r-- | node_modules/moment/src/lib/utils/is-object.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/moment/src/lib/utils/is-object.js b/node_modules/moment/src/lib/utils/is-object.js new file mode 100644 index 0000000..a1b2d42 --- /dev/null +++ b/node_modules/moment/src/lib/utils/is-object.js @@ -0,0 +1,8 @@ +export default function isObject(input) { + // IE8 will treat undefined and null as object if it wasn't for + // input != null + return ( + input != null && + Object.prototype.toString.call(input) === '[object Object]' + ); +} |