Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Object.create Polyfill

if (!Object.create) {
  Object.create = function(base) {
    function F() {};
    F.prototype = base;
    return new F();
  }
}
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #Polyfill
ADD COMMENT
Topic
Name
4+4 =