From a54c482adbec8cb10f8be2498890c9f7b47c8807 Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Mon, 8 May 2023 22:16:39 -0600 Subject: [PATCH] Convert src/runtime/motion/utils.ts to JavaScript --- src/runtime/motion/utils.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/runtime/motion/utils.ts b/src/runtime/motion/utils.ts index 2eab8baa2f..c334117348 100644 --- a/src/runtime/motion/utils.ts +++ b/src/runtime/motion/utils.ts @@ -1,3 +1,10 @@ -export function is_date(obj: any): obj is Date { - return Object.prototype.toString.call(obj) === '[object Date]'; +/** @param {any} obj + * @returns {boolean} + */ +export function is_date(obj) { + return Object.prototype.toString.call(obj) === '[object Date]'; } + + + +