This commit is contained in:
Stephen Franceschelli 2019-07-30 13:16:01 -04:00
parent 7fe1ba03a3
commit ec0a863019
7020 changed files with 1880198 additions and 489 deletions

22
node_modules/is-descriptor/index.js generated vendored Normal file
View file

@ -0,0 +1,22 @@
/*!
* is-descriptor <https://github.com/jonschlinkert/is-descriptor>
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
var typeOf = require('kind-of');
var isAccessor = require('is-accessor-descriptor');
var isData = require('is-data-descriptor');
module.exports = function isDescriptor(obj, key) {
if (typeOf(obj) !== 'object') {
return false;
}
if ('get' in obj) {
return isAccessor(obj, key);
}
return isData(obj, key);
};