Похожие чаты

Is there a clean way to modify Date object instances

but without mutations? no third-party libs
e.g. setFullyear but it returns a new instance with the changed year

1 ответов

5 просмотров

I think this API uses immutable objects, so you just gotta wait for it to land :p https://github.com/tc39/proposal-temporal

Похожие вопросы

Обсуждают сегодня

Карта сайта