You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
350 B

4 years ago
  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. };