Add moment mutability notice for future generations

This commit is contained in:
Cohee 2024-03-12 20:45:30 +02:00
parent c259294f58
commit 700c20d441
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ const dateCache = new Map();
/**
* Cached version of moment() to avoid re-parsing the same date strings.
* Important: Moment objects are mutable, so use clone() before modifying them!
* @param {any} timestamp String or number representing a date.
* @returns {*} Moment object
*/