mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
33 lines
526 B
JavaScript
33 lines
526 B
JavaScript
function isString(value) {
|
|
return typeof value === 'string';
|
|
}
|
|
|
|
function isNumber(value) {
|
|
return typeof value === 'number';
|
|
}
|
|
|
|
function isBoolean(value) {
|
|
return typeof value === 'boolean';
|
|
}
|
|
|
|
function isUndefined(value) {
|
|
return typeof value === 'undefined';
|
|
}
|
|
|
|
function isObject(value) {
|
|
return typeof value === 'object' && value !== null;
|
|
}
|
|
|
|
function isFunction(value) {
|
|
return typeof value === 'function';
|
|
}
|
|
|
|
module.exports = {
|
|
isString,
|
|
isNumber,
|
|
isBoolean,
|
|
isUndefined,
|
|
isObject,
|
|
isFunction,
|
|
};
|