function validateLengths(object) {
	_.forEach(object, function(field) {
		if(field.value.toString().length > field.width) {
			throw new nACHError( {
				name: 'Invalid Length',
				message: field.name+'\'s length is '+field.value.length+', but it should be no greater than '+field.width+'.'
			});
		}
	});

	return true;
}
// Validate the lengths of fields by using their `width` property
Validate the lengths of fields by using their `width` property
Validate the lengths of fields by using their ` width ` property
function validateLengths(object) {
	_.forEach(object, function(field) {
		if(field.value.toString().length > field.width) {
			throw new nACHError( {
				name: 'Invalid Length',
				message: field.name+'\'s length is '+field.value.length+', but it should be no greater than '+field.width+'.'
			});
		}
	});
	return true;
}
function validateLengths ( object ) { _ . forEach ( object , function ( field ) { if ( field . value . toString ( ) . length > field . width ) { throw new nACHError ( { name : 'Invalid Length' , message : field . name + '\'s length is ' + field . value . length + ', but it should be no greater than ' + field . width + '.' } ) ; } } ) ; return true ; }
Validate the lengths of fields by using their `width` property
Validate the lengths of fields by using their ` width ` property