UNPKG

node-bcc

Version:

A simple Block Check Character library.

29 lines 762 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Helper = void 0; class Helper { /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ static checkArray(arrayToCheck) { if (!Array.isArray(arrayToCheck)) { return false; } if (arrayToCheck.length === 0) { return false; } return true; } static checkString(stringToCheck) { if (stringToCheck === null) { return false; } if (stringToCheck === undefined) { return false; } if (stringToCheck === '') { return false; } return true; } } exports.Helper = Helper; //# sourceMappingURL=helper.js.map