JSFiddle - React, Tailwind, and code Playground

JavaScript

var data =JSON.stringify([{fecha_vencimiento:1},{fecha_vencimiento:2},{fecha_vencimiento:3}]);
function getFechas(val) {
  return $.ajax({
    type: "POST",
    url: '/echo/json/',
    data: {
      json: data
    }
  }).then(function(resp) {
    var venc = resp.map(function(item) {
      return item.fecha_vencimiento
    });    
    return venc;
  });
}

$.when(getFechas( /*datepickerValue*/ )).done(function(a1) {
  console.log(a1);
});