I've read the MDN document on Object.create. It only pointed out the scenario when the first argument is a prototype. However, I've seen some code in Node.js like this:
var events = require('events');
var emitter = new events.EventEmitter();
var a = Object.create(emitter);
So what does Object.create()
do when its first argument is an object?