UNPKG

@progress/kendo-charts

Version:

Kendo UI platform-independent Charts library

6 lines (5 loc) 199 B
import addDuration from './add-duration'; import toDate from './to-date'; export default function floorDate(date, unit, weekStartDay) { return addDuration(toDate(date), 0, unit, weekStartDay); }