JSFiddle - React, Tailwind, and code Playground

by Chan Wu

JavaScript

console.clear();

var validates = [
    'required'
];
var options = {
	'note': {
    	required: true,
        match: 1234,
        wc: 'yes'
    }
};

$.each(options, function(index, value) {
	$.each(value, function(index, value) {
    	console.log(index);
    	console.log(validates.indexOf(index));
    });
});