I have a simple datepicker
<input type="date">
How to enable only some given specific dates on this datepicker
array = [{"date":"06-April-2021"},{"date":"11-April-2021"},{"date":"17-April-2021"}]
There were some solutions with jquery but how to achieve this through javascript