enforcer.js
// Finds keys in key_arr that do not exist in test_arr
Finds keys in key_arr that do not exist in test_arr
Finds keys in key_arr that do not exist in test_arr
function find_missing(key_arr, test_arr){
				var arr_a = key_arr;
				var arr_b = test_arr;
				var miss = [];
				for (var i = arr_a.length - 1; i >= 0; i--) {
					if (arr_a[i] !== '*'){
						if (arr_b.indexOf(arr_a[i]) === -1) {
						miss.push(arr_a[i])
						};
					};
				};
				return miss;
			}
function find_missing ( key_arr , test_arr ) { var arr_a = key_arr ; var arr_b = test_arr ; var miss = [ ] ; for ( var i = arr_a . length - 1 ; i >= 0 ; i -- ) { if ( arr_a [ i ] !== '*' ) { if ( arr_b . indexOf ( arr_a [ i ] ) === - 1 ) { miss . push ( arr_a [ i ] ) } ; } ; } ; return miss ; }
Finds keys in key_arr that do not exist in test_arr
Finds keys in key_arr that do not exist in test_arr
//Wildcard support. Ignore check if the key array value is a wildcard