decord/source/3507_isExists.js

21 lines
582 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 3507
2026-07-27 11:26:19 +00:00
// Function ID: 26957
2026-07-20 16:05:17 +00:00
// Name: isExists
// Dependencies: []
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 3507 (isExists)
2026-07-20 16:05:17 +00:00
export default function isExists(arg0, arg1, arg2) {
if (arguments.length < 3) {
const _TypeError = TypeError;
const typeError = new TypeError("3 argument required, but only " + arguments.length + " present");
throw typeError;
} else {
const _Date = Date;
const date = new Date(arg0, arg1, arg2);
return date.getFullYear() === arg0 && date.getMonth() === arg1 && date.getDate() === arg2;
}
};
export default exports.default;