Files
memecoin-botV2/.pnpm-store/v10/files/c9/ed6168d25733e9ce9ae96ebeb4b1a06ac48b79bf59dc5bf84762a6ccefa267da8e5d05141b89244b9027b81eda4de794f31a21261e234e72e2a9f7bec1b386

35 lines
1.1 KiB
Plaintext

"use strict";
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
Object.defineProperty(exports, "__esModule", { value: true });
exports.boolean = boolean;
exports.string = string;
exports.number = number;
exports.error = error;
exports.func = func;
exports.array = array;
exports.stringArray = stringArray;
function boolean(value) {
return value === true || value === false;
}
function string(value) {
return typeof value === 'string' || value instanceof String;
}
function number(value) {
return typeof value === 'number' || value instanceof Number;
}
function error(value) {
return value instanceof Error;
}
function func(value) {
return typeof value === 'function';
}
function array(value) {
return Array.isArray(value);
}
function stringArray(value) {
return array(value) && value.every(elem => string(elem));
}