/*! * is-descriptor <https://github.com/jonschlinkert/is-descriptor> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */'use strict';vartypeOf=require('kind-of');varisAccessor=require('is-accessor-descriptor');varisData=require('is-data-descriptor');module.exports=functionisDescriptor(obj,key){if(typeOf(obj)!=='object'){returnfalse;}if('get'inobj){returnisAccessor(obj,key);}returnisData(obj,key);};