Reply to 1556015672312098817
@aarongarciah @wolframkriesing I prefer that bu would write:
const createDates = ({ date, ...hotel }) => ({ ...hotel, dates: [date] })
so it's clearer what the rest is (technically a hotel without a date).
Reply to 1556015672312098817
@aarongarciah @wolframkriesing I prefer that bu would write:
const createDates = ({ date, ...hotel }) => ({ ...hotel, dates: [date] })
so it's clearer what the rest is (technically a hotel without a date).