Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dyr/src/util.ts>cleanForecast

Access Yr's weather API and Nominatim's API with Deno
Latest
function cleanForecast
import { cleanForecast } from "https://deno.land/x/dyr@v2.1.0/src/util.ts";

Removes undefined from arrays

Parameters

array: (TimeseriesMinified | undefined)[]

Timeseries from parsed from Yr

Returns

Array without any undefined entries