mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-05 07:31:43 +00:00
@@ -47,6 +47,13 @@ $tw.utils.hop = function(object,property) {
|
|||||||
/** @deprecated Use Array.isArray instead */
|
/** @deprecated Use Array.isArray instead */
|
||||||
$tw.utils.isArray = (value) => Array.isArray(value);
|
$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.
|
Check if an array is equal by value and by reference.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user