Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dyr/src/util.ts>cleanForecast

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

Removes undefined from arrays

Parameters

array: (CLI.ITimeseriesSimple | undefined)[]

Timeseries from parsed from Yr

Returns

CLI.ITimeseriesSimple[]

Array without any undefined entries