mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
define([], function() {
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
var nativeGetPrototype = Object.getPrototypeOf;
|
|
|
|
/**
|
|
* Gets the `[[Prototype]]` of `value`.
|
|
*
|
|
* @private
|
|
* @param {*} value The value to query.
|
|
* @returns {null|Object} Returns the `[[Prototype]]`.
|
|
*/
|
|
function getPrototype(value) {
|
|
return nativeGetPrototype(Object(value));
|
|
}
|
|
|
|
return getPrototype;
|
|
});
|