@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).
A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].
@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).