index.js 350 B

1234567891011121314
  1. /*!
  2. * is-extendable <https://github.com/jonschlinkert/is-extendable>
  3. *
  4. * Copyright (c) 2015-2017, Jon Schlinkert.
  5. * Released under the MIT License.
  6. */
  7. 'use strict';
  8. var isPlainObject = require('is-plain-object');
  9. module.exports = function isExtendable(val) {
  10. return isPlainObject(val) || typeof val === 'function' || Array.isArray(val);
  11. };