UNPKG

configly

Version:

A developer-friendly lightweight replacement for the 'config' module that works with custom config directories and pluggable parsers

13 lines (11 loc) 309 B
module.exports = isObject; /** * Check if provided variable is really an object * * @param {mixed} obj - variable to check * @returns {boolean} true if variable is real object, false otherwise */ function isObject(obj) { return (obj !== null) && (typeof obj == 'object') && !(Array.isArray(obj)); }