UNPKG

js-request-manager

Version:

JS Request Manager is a library for creating an sdk library for your server (API). The API type doesn't matter, whether it's REST or RPC

20 lines (15 loc) 435 B
export function isArray(a) { return (!!a) && (a.constructor === Array); } export function isString(f) { return typeof f === 'string'; } export function isFunction(f) { return typeof f === 'function'; } export function isLiteralObject(a) { return (!!a) && (a.constructor === Object); } export function isEmpty(value) { return Boolean(value && typeof value === 'object') && !Object.keys(value).length; }