TypedJS: Sanity Check your JavaScript
typedjs.com
typedjs.com
You don't get the automatic runtime test generation stuff, but that's more along the lines of an add-on utility like Quickcheck/Scalacheck.
Line 180 should be: count += num_arr[i];
Moreover naming accumulation variable for sum "count" is totally counter intuitive.
if(obj.valid === true) {
I would flag this line as an error.
if (obj.valid) {