mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-22 23:40:29 +01:00
Add moment mutability notice for future generations
This commit is contained in:
parent
c259294f58
commit
700c20d441
@ -606,6 +606,7 @@ const dateCache = new Map();
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Cached version of moment() to avoid re-parsing the same date strings.
|
* 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.
|
* @param {any} timestamp String or number representing a date.
|
||||||
* @returns {*} Moment object
|
* @returns {*} Moment object
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user