avo-assert-js
Advanced tools
Comparing version 1.2.0 to 1.3.0
12
index.js
@@ -85,9 +85,11 @@ exports.assertString = function assertString(propName, str) { | ||
} else { | ||
value.forEach((val, index) => | ||
exports[`assert${type.charAt(0).toUpperCase() + type.slice(1)}`]( | ||
`item at index ${index} in ${propName}`, | ||
value.forEach(function(val, index) { | ||
var assertFunction = | ||
'assert' + type.charAt(0).toUpperCase() + type.slice(1); | ||
exports[assertFunction]( | ||
'item at index ' + index + ' in ' + propName, | ||
val | ||
) | ||
); | ||
); | ||
}); | ||
} | ||
}; |
{ | ||
"name": "avo-assert-js", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "index.js", | ||
"license": "MIT" | ||
} |
2361
88