git-subtree-dir: main-site git-subtree-mainline: 4d1daa39101c0a85ca6d916f1c31139faf39632a git-subtree-split: 5cefb4d1618bc54ae0e86830421a8c911900302c
17 lines
299 B
JavaScript
17 lines
299 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Determines if `arg` is an object.
|
|
*
|
|
* @param {Object|Array|String|Function|RegExp|any} arg
|
|
* @api private
|
|
* @return {Boolean}
|
|
*/
|
|
|
|
module.exports = function(arg) {
|
|
return (
|
|
Buffer.isBuffer(arg) ||
|
|
Object.prototype.toString.call(arg) === '[object Object]'
|
|
);
|
|
};
|