mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-01 20:44:27 +00:00
1 parent
aff5be7195
commit
3a4a8a206f
1 file changed
+7
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user