Refactor prettyPrinter to work with immutable objects

[#50766813][#266]
This commit is contained in:
Greg Cobb and Luan Santos
2014-03-12 11:41:18 -07:00
parent 9e927af56e
commit c9e37a2a1c
4 changed files with 57 additions and 4 deletions

View File

@@ -30,5 +30,15 @@ getJasmineRequireObj().util = function() {
return obj === void 0;
};
util.arrayContains = function(array, search) {
var i = array.length;
while (i--) {
if (array[i] == search) {
return true;
}
}
return false;
}
return util;
};