Plato on Github
Report Home
node_modules/es5-ext/object/set-prototype-of/is-implemented.js
Maintainability
70.81
Lines of code
11
Difficulty
11.20
Estimated Errors
0.08
Function weight
By Complexity
By SLOC
'use strict'; var create = Object.create, getPrototypeOf = Object.getPrototypeOf , x = {}; module.exports = function (/*customCreate*/) { var setPrototypeOf = Object.setPrototypeOf , customCreate = arguments[0] || create; if (typeof setPrototypeOf !== 'function') return false; return getPrototypeOf(setPrototypeOf(customCreate(null), x)) === x; };