MCPcopy Create free account
hub / github.com/codrops/RainEffect / check

Function check

demo/js/index2.js:1136–1139  ·  view source on GitHub ↗
(O, proto)

Source from the content-addressed store, hash-verified

1134 , isObject = require('./$.is-object')
1135 , anObject = require('./$.an-object');
1136var check = function(O, proto){
1137 anObject(O);
1138 if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
1139};
1140module.exports = {
1141 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
1142 function(test, buggy, set){

Callers 1

index2.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected