package.dist.esm.utils.is.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
Responsive and accessible React UI components built with React and Emotion
The newest version!
"use strict";
function isObject(value) {
const type = typeof value;
return value != null && (type === "object" || type === "function") && !Array.isArray(value);
}
function isCssVar(value) {
return /^var\(--.+\)$/.test(value);
}
function isString(value) {
return Object.prototype.toString.call(value) === "[object String]";
}
function isFunction(value) {
return typeof value === "function";
}
export { isCssVar, isFunction, isObject, isString };
© 2015 - 2025 Weber Informatics LLC | Privacy Policy