UNPKG

tether

Version:

A client-side library to make absolutely positioned elements attach to elements in the page efficiently.

40 lines (35 loc) 953 B
/** * Checks if `value` is classified as a `Function` object. * @param {*} value The param to check if it is a function */ export function isFunction(value) { return typeof value === 'function'; } /** * Checks if `value` is classified as a `Number` object. * @param {*} value The param to check if it is a number */ export function isNumber(value) { return typeof value === 'number'; } /** * Checks if `value` is classified as an `Object`. * @param {*} value The param to check if it is an object */ export function isObject(value) { return typeof value === 'object'; } /** * Checks if `value` is classified as a `String` object. * @param {*} value The param to check if it is a string */ export function isString(value) { return typeof value === 'string'; } /** * Checks if `value` is undefined. * @param {*} value The param to check if it is undefined */ export function isUndefined(value) { return value === undefined; }