All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.helpers.getProto.js Maven / Gradle / Ivy

There is a newer version: 1.22.3
Show newest version
'use strict';

var GetIntrinsic = require('get-intrinsic');

var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);

var hasProto = require('has-proto')();

module.exports = originalGetProto || (
	hasProto
		? function (O) {
			return O.__proto__; // eslint-disable-line no-proto
		}
		: null
);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy