| Next Post »

Object.beget = (function(Function){ 
  return function(Object){ 
    Function.prototype = Object; 
    return new Function; 
  } 
})(function(){});

Taken from http://stackoverflow.com/questions/61088/hidden-features-of-javascript

Categories: javascript, snippets

Comments are closed.