10
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2026-04-09 09:14:17 +00:00
setup-node/node_modules/extend-shallow/node_modules/is-extendable/index.js
eric sciple 2b95e76931 .
2020-01-24 12:20:19 -05:00

14 lines
350 B
JavaScript

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