JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox">
JavaScript
var isCheck = $('input').is(function() {
return this.type === "checkbox";
});
console.log(isCheck);
<input type="checkbox">
var isCheck = $('input').is(function() {
return this.type === "checkbox";
});
console.log(isCheck);