1 var mixIn = require('../object/mixIn');
4 * Create Object using prototypal inheritance and setting custom properties.
5 * - Mix between Douglas Crockford Prototypal Inheritance <http://javascript.crockford.com/prototypal.html> and the EcmaScript 5 `Object.create()` method.
6 * @param {object} parent Parent Object.
7 * @param {object} [props] Object properties.
8 * @return {object} Created object.
10 function createObject(parent, props){
13 return mixIn(new F(), props);
16 module.exports = createObject;