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.
|
||||
* Important: Moment objects are mutable, so use clone() before modifying them!
|
||||
* @param {any} timestamp String or number representing a date.
|
||||
* @returns {*} Moment object
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue