UNPKG

react-weekly-table

Version:

React weekly scheduler <br/> By default build time ranges for a week, supports up to 31 days <br/> Can work with different timezones, data always return to UTC+0

23 lines (22 loc) 330 B
const letters = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', ]; export const random = () => { return ((new Date().getTime() / 1000) * Math.random() + letters[Math.floor(Math.random() * 10)]); };