Module

x/dotenv/util.ts

Dotenv file handling for deno.
Extremely Popular
Go to Latest
File
export function trim(val: string): string { return val.trim();}
export function compact(obj: any): object { return Object.keys(obj).reduce((result: any, key) => { if (obj[key]) { result[key] = obj[key]; } return result; }, {});}
export function difference(arrA: string[], arrB: string[]): string[] { return arrA.filter((a) => arrB.indexOf(a) < 0);}