Sha256: a6f0cb10a8015d386fb71416031b55fa0df423a69da629f4a07aadb4763acb12

Contents?: true

Size: 334 Bytes

Versions: 76

Compression:

Stored size: 334 Bytes

Contents

module.exports = Object.setPrototypeOf || ({__proto__:[]} instanceof Array ? setProtoOf : mixinProperties);

function setProtoOf(obj, proto) {
	obj.__proto__ = proto;
	return obj;
}

function mixinProperties(obj, proto) {
	for (var prop in proto) {
		if (!obj.hasOwnProperty(prop)) {
			obj[prop] = proto[prop];
		}
	}
	return obj;
}

Version data entries

76 entries across 68 versions & 13 rubygems

Version Path
cortex-0.1.3 spec/dummy/node_modules/setprototypeof/index.js
cortex-0.1.3 spec/dummy/node_modules/http-errors/node_modules/setprototypeof/index.js
sumomo-0.8.3 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.8.2 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.8.1 data/sumomo/api_modules/node_modules/setprototypeof/index.js
dragonfly_puppeteer-0.1.0 node_modules/raw-body/node_modules/setprototypeof/index.js
dragonfly_puppeteer-0.1.0 node_modules/setprototypeof/index.js
sumomo-0.8.0 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.7.3 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.7.2 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.7.1 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.6.4 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.6.3 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.6.2 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.6.1 data/sumomo/api_modules/node_modules/setprototypeof/index.js
sumomo-0.6.0 data/sumomo/api_modules/node_modules/setprototypeof/index.js