UNPKG

i18n-js

Version:

A small library to provide I18n on JavaScript.

13 lines (12 loc) 287 B
/** * Check if value is different than undefined and null. * * @private * * @param {unknown} value The inspecting value. * * @returns {boolean} Whether the value is set or not. */ export function isSet(value: unknown): boolean { return value !== undefined && value !== null; }