mirror of
https://github.com/knex/knex.git
synced 2025-07-03 15:10:07 +00:00
24 lines
551 B
JavaScript
24 lines
551 B
JavaScript
![]() |
exports.isString = function isString(value) {
|
||
|
return typeof value === 'string';
|
||
|
};
|
||
|
|
||
|
exports.isNumber = function isNumber(value) {
|
||
|
return typeof value === 'number';
|
||
|
};
|
||
|
|
||
|
exports.isBoolean = function isBoolean(value) {
|
||
|
return typeof value === 'boolean';
|
||
|
};
|
||
|
|
||
|
exports.isUndefined = function isUndefined(value) {
|
||
|
return typeof value === 'undefined';
|
||
|
};
|
||
|
|
||
|
exports.isObject = function isObject(value) {
|
||
|
return typeof value === 'object' && value !== null;
|
||
|
};
|
||
|
|
||
|
exports.isFunction = function isFunction(value) {
|
||
|
return typeof value === 'function';
|
||
|
};
|