JsonFiles has errors

This commit is contained in:
Fede Ramirez
2015-03-26 23:08:35 -03:00
parent 27b9934080
commit c5327a20fc
2 changed files with 9 additions and 4 deletions
+5
View File
@@ -44,6 +44,11 @@ JsonFile.prototype.errors = function(){
return this._errors;
};
JsonFile.prototype.hasErrors = function(){
return this._errors.length > 0;
};
JsonFile.prototype.forEach = function(fn){
forOwn(this._json, fn, this);