Hotfix for broken test for dates

Fixes #9726
This commit is contained in:
Jeremy Ruston
2026-03-24 11:19:17 +00:00
parent aff5be7195
commit 3a4a8a206f
+7
View File
@@ -47,6 +47,13 @@ $tw.utils.hop = function(object,property) {
/** @deprecated Use Array.isArray instead */
$tw.utils.isArray = (value) => Array.isArray(value);
/*
Determine if a value is a date, even across VM boundaries
*/
$tw.utils.isDate = function(value) {
return Object.prototype.toString.call(value) === "[object Date]";
};
/*
Check if an array is equal by value and by reference.
*/