UNPKG

tui-code-snippet

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