20 lines
382 B
JavaScript
20 lines
382 B
JavaScript
/*!
|
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
*
|
|
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
|
* Licensed under the MIT License
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* is the value an object, and not an array?
|
|
*
|
|
* @param {*} `value`
|
|
* @return {Boolean}
|
|
*/
|
|
|
|
module.exports = function isObject(o) {
|
|
return o != null && typeof o === 'object'
|
|
&& !Array.isArray(o);
|
|
}; |