]> git.r.bdr.sh - rbdr/dotfiles/blob
98d0c8436a8d46e5589dfc8978b924813b6eff3e
[rbdr/dotfiles] /
1 'use strict';
2
3 var create = Object.create, getPrototypeOf = Object.getPrototypeOf
4 , x = {};
5
6 module.exports = function (/*customCreate*/) {
7 var setPrototypeOf = Object.setPrototypeOf
8 , customCreate = arguments[0] || create;
9 if (typeof setPrototypeOf !== 'function') return false;
10 return getPrototypeOf(setPrototypeOf(customCreate(null), x)) === x;
11 };