1var name_map = {
2 "#first": "First Name",
3 "#middle": "Middle Name",
4 "#last": "Last Name"
5}
6
7if (Object.keys(check_map).every(selector => $(selector).val())) {
8 // Yes, they all have non-blank values
9} else {
10 // No, at least one of them has a blank value (or didn't exist at all)
11}