Published
Edited
Sep 28, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md `<br><hr>** SOURCE CODE ** (Leave this / sections below alone)`
Insert cell
import {text, textarea, date} from "@jashkenas/inputs"

Insert cell
string
Insert cell
dtstart
Insert cell
module = import('https://unpkg.com/rrule@2.6.0/dist/esm/src/index.js?module')
Insert cell
RRule = module.RRule
Insert cell
DEFAULT_RULE = "FREQ=WEEKLY;BYDAY=SU,MO,TU,WE,TH,FR,SA;INTERVAL=1"
Insert cell
rule = {
var rrule = RRule.fromString(string.length == 0 ? DEFAULT_RULE : string);
rrule.options.dtstart = dtstart || new Date();
return rrule;
}
Insert cell
dates = rule.all(function (date, i){
return i < 30
}).map(d => d.toDateString())
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more