Files

19 lines
383 B
JavaScript

/**
* @name isObject
* @summary Tests for an `object`.
* @description
* Checks to see if the input value is a JavaScript object.
* @example
* <BR>
*
* ```javascript
* import { isObject } from '@pezkuwi/util';
*
* isObject({}); // => true
* isObject('something'); // => false
* ```
*/
export function isObject(value) {
return !!value && typeof value === 'object';
}