varisPrototype=require('./_isPrototype'),nativeKeys=require('./_nativeKeys');/** Used for built-in method references. */varobjectProto=Object.prototype;/** Used to check objects for own properties. */varhasOwnProperty=objectProto.hasOwnProperty;/** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */functionbaseKeys(object){if(!isPrototype(object)){returnnativeKeys(object);}varresult=[];for(varkeyinObject(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}returnresult;}module.exports=baseKeys;