"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isArray = isArray;
exports.isFunction = isFunction;
exports.isJsx = isJsx;
exports.isNumber = isNumber;
exports.isObject = isObject;
exports.isReactText = isReactText;
exports.isString = isString;
const react_1 = __importDefault(require("react"));
/** Is value an array. */
function isArray(value) {
    return Array.isArray(value);
}
/** Is value a function. */
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
function isFunction(value) {
    return typeof value === 'function';
}
/** Is value JSX / React Element */
function isJsx(value) {
    return react_1.default.isValidElement(value);
}
/** Is value a number. */
function isNumber(value) {
    return typeof value === 'number';
}
/** Is value a regular object (functions, arrays and React elements excluded). */
function isObject(value) {
    return !!value && typeof value === 'object' && !isFunction(value) && !isArray(value) && !react_1.default.isValidElement(value);
}
/** Is value a valid ReactText - string or number. */
function isReactText(value) {
    return isNumber(value) || isString(value);
}
/** Is value a string. */
function isString(value) {
    return Object.prototype.toString.call(value) === '[object String]';
}
//# sourceMappingURL=assertion.js.map