Programming Tips - How can I see if jQuery object is checked?

Date: 2017may12 Update: 2017aug21 Library: jQuery Language: javaScript Q. How can I see if jQuery object is checked? A. In jQuery 1.6+
const isCHecked = $('#id).prop('checked');
Before jQuery 1.6
function isJqObjChecked(jqueryObj) { var isChecked = false; jqueryObj.each(function() { isChecked = this.checked; }); return isChecked; }
// More compact but less robust function isJqObjChecked(jqueryObj) { return jqueryObj[0].checked; }
function exampleUse() { var isChecked = isJqObjChecked($('#mycheckbox')); }