graphql-compose
Version:
GraphQL schema builder from different data sources with middleware extensions.
14 lines (10 loc) • 389 B
Flow
/* @flow */
export function isString(value: mixed): boolean {
return typeof value === 'string';
}
export function isObject(value: mixed): boolean {
return typeof value === 'object' && !Array.isArray(value) && value !== null;
}
export function isFunction(value: mixed): boolean {
return !!(value && value.constructor && value.call && typeof value === 'function' && value.apply);
}