vue-functional-calendar-improve
Version:
Lightweight, high-performance calendar component based on Vue.js
14 lines (13 loc) • 318 B
JavaScript
/**
* Check Element Contains
* @param el
* @param child
* @returns {boolean|*}
*/
export const hElContains = (el, child) =>
!!el && !!child && (el === child || el.contains(child));
/**
* Generate unique ID
* @returns {number}
*/
export const hUniqueID = () => new Date().getUTCMilliseconds();