UNPKG

tui-code-snippet

Version:
20 lines (16 loc) 466 B
/** * @fileoverview Check whether the given variable is a function or not. * @author NHN FE Development Lab <dl_javascript@nhn.com> */ 'use strict'; /** * Check whether the given variable is a function or not. * If the given variable is a function, return true. * @param {*} obj - Target for checking * @returns {boolean} Is function? * @memberof module:type */ function isFunction(obj) { return obj instanceof Function; } module.exports = isFunction;