10 lines
383 B
JavaScript
10 lines
383 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var create = Object.create, getPrototypeOf = Object.getPrototypeOf, plainObject = {};
|
||
|
|
||
|
module.exports = function (/* CustomCreate*/) {
|
||
|
var setPrototypeOf = Object.setPrototypeOf, customCreate = arguments[0] || create;
|
||
|
if (typeof setPrototypeOf !== "function") return false;
|
||
|
return getPrototypeOf(setPrototypeOf(customCreate(null), plainObject)) === plainObject;
|
||
|
};
|