Object.create with Function

by andypotanin

JavaScript

var test = Object.create( function() {

    return Object.defineProperties( {}, {
        thang: { enumerable: true, value: 'thangvalue' }  
    })
    
}.call(), {
    thing: { enumerable: true, value: 'asdf' } 
});

console.log( test );