Added complete support for Set also for IE11.

Fixes 1355
This commit is contained in:
Volonterio Riccardo
2018-01-12 12:18:35 +01:00
parent 1dfdc89ba9
commit 486a64658f
7 changed files with 169 additions and 63 deletions

View File

@@ -95,6 +95,10 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
j$.isMap = function(obj) {
return typeof jasmineGlobal.Map !== 'undefined' && obj.constructor === jasmineGlobal.Map;
};
j$.isSet = function(obj) {
return typeof jasmineGlobal.Set !== 'undefined' && obj.constructor === jasmineGlobal.Set;
};
j$.isPromise = function(obj) {