UNPKG

@klevu/core

Version:

Typescript SDK that simplifies development on Klevu backend. Klevu provides advanced AI-powered search and discovery solutions for online retailers.

12 lines (11 loc) 228 B
/** * Type safe version to remove nulls and undefineds from array * * usage: `myArray.filter(notEmpty)` * * @param value * @returns */ export function notEmpty(value) { return value !== null && value !== undefined; }