JavaScriptでのclone

function clone(obj){
    var F = function(){};
    F.prototype = obj;
    return new F;
}

これにはちょっと感動した。