UNPKG

vike

Version:

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

17 lines (16 loc) 477 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNullish = isNullish; exports.isNotNullish = isNotNullish; exports.isNotNullish_keyVal = isNotNullish_keyVal; function isNullish(val) { return val === null || val === undefined; } // someArray.filter(isNotNullish) function isNotNullish(p) { return !isNullish(p); } // objectFilter(obj).filter(isNotNullish_keyVal) function isNotNullish_keyVal(arg) { return !isNullish(arg[1]); }