mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-23 17:19:18 +02:00
16 lines
299 B
JavaScript
16 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]'
|
|
);
|
|
};
|