UNPKG

@segment/analytics-core

Version:

This package represents core 'shared' functionality that is shared by analytics packages. This is not designed to be used directly, but internal to analytics-node and analytics-browser.

16 lines 456 B
export function isString(obj) { return typeof obj === 'string'; } export function isNumber(obj) { return typeof obj === 'number'; } export function isFunction(obj) { return typeof obj === 'function'; } export function exists(val) { return val !== undefined && val !== null; } export function isPlainObject(obj) { return (Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() === 'object'); } //# sourceMappingURL=helpers.js.map