The JavaScript snippet collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
JavaScript, Date
Calculates the difference (in hours) between two dates.
JavaScript, Date
Calculates the difference (in minutes) between two dates.
JavaScript, Date
Calculates the difference (in seconds) between two dates.
JavaScript, Date
Checks if the given year
is a leap year.
JavaScript, Date
Checks if a date is the same as another date.
JavaScript, Date
Checks if the given date is a weekday.
JavaScript, Date
Checks if the given date is a weekend.
JavaScript, Date
Checks if a date is after another date.
JavaScript, Date
Checks if a date is before another date.
JavaScript, Date
Checks if a date is between two other dates.