UNPKG

intl-js-sdk-dev

Version:

This is I18n level 2 common library for javascript based clients like g11n-angular-client,g11n-js-client

22 lines (21 loc) 522 B
"use strict"; /* * Copyright 2019 VMware, Inc. * SPDX-License-Identifier: EPL-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); /** * verify value if undefined or null */ function isDefined(value) { return value !== undefined && value !== null && value !== ''; } exports.isDefined = isDefined; function isEmptyObject(obj) { if (!isDefined(obj)) { return true; } const keys = Object.keys(obj); return keys.length ? false : true; } exports.isEmptyObject = isEmptyObject;