index.js 317 B

1234567891011121314
  1. /*!
  2. * isobject <https://github.com/jonschlinkert/isobject>
  3. *
  4. * Copyright (c) 2014-2015, Jon Schlinkert.
  5. * Licensed under the MIT License.
  6. */
  7. 'use strict';
  8. var isArray = require('isarray');
  9. module.exports = function isObject(val) {
  10. return val != null && typeof val === 'object' && isArray(val) === false;
  11. };