How can i create function for finding numbers of business days of current month? Can you code in simple javascript without Jquery.
function daysInMonth(i
Arrow function style with chaining:
( (year, month) => new Array(32 - new Date(year, month, 32).getDate()) .fill(1) .filter( (id, index) => [0, 6].indexOf( new Date(year, month, index + 1).getDay()) === -1 ).length )(2017, 5)