UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

12 lines (11 loc) 302 B
export function isNullish(val) { return val === null || val === undefined; } // someArray.filter(isNotNullish) export function isNotNullish(p) { return !isNullish(p); } // objectFilter(obj).filter(isNotNullish_keyVal) export function isNotNullish_keyVal(arg) { return !isNullish(arg[1]); }