index.js 382 B

1234567891011121314151617181920
  1. /*!
  2. * isobject <https://github.com/jonschlinkert/isobject>
  3. *
  4. * Copyright (c) 2014 Jon Schlinkert, contributors.
  5. * Licensed under the MIT License
  6. */
  7. 'use strict';
  8. /**
  9. * is the value an object, and not an array?
  10. *
  11. * @param {*} `value`
  12. * @return {Boolean}
  13. */
  14. module.exports = function isObject(o) {
  15. return o != null && typeof o === 'object'
  16. && !Array.isArray(o);
  17. };