UNPKG

graphql-compose

Version:

GraphQL schema builder from different data sources with middleware extensions.

13 lines (10 loc) 647 B
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; export function isString(value) { return typeof value === 'string'; } export function isObject(value) { return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && !Array.isArray(value) && value !== null; } export function isFunction(value) { return !!(value && value.constructor && value.call && typeof value === 'function' && value.apply); }