UNPKG

@applicaster/zapp-react-native-ui-components

Version:

Applicaster Zapp React Native ui components for the Quick Brick App

10 lines (9 loc) 283 B
/** * Check if the date is valid. Without this check, * an "Invalid Date" string could appear in some of the Javascript engines * When using the .toDateString() method. * @param {Date} date */ export function isDateValid(date) { return date instanceof Date && !isNaN(date); }