UNPKG

sync-query

Version:

Use the React higher-order component to store the React State in URL query (routing parameters)

17 lines (12 loc) 436 B
export function isArray(value) { return Object.prototype.toString.call(value) == "[object Array]"; } export function isObject(value) { return (Object.prototype.toString.call(value)) == "[object Object]"; } export function isString(value) { return Object.prototype.toString.call(value) == "[object String]"; } export function isFunction(value) { return Object.prototype.toString.call(value) == "[object Function]"; }