return typeof duration === "number" ? duration : defaultDuration