Skip to main content
Module

x/dotenv/util.ts

Dotenv file handling for deno.
Extremely Popular
Go to Latest
File
// deno-lint-ignore no-explicit-anyexport function removeEmptyValues( obj: Record<string, any>,): Record<string, any> { return Object.fromEntries( Object.entries(obj).filter(([, value]) => { if (value === null) return false; if (value === undefined) return false; if (value === "") return false; return true; }), );}
export function difference(arrA: string[], arrB: string[]): string[] { return arrA.filter((a) => arrB.indexOf(a) < 0);}