/object.create

Polyfill for object.create, available on bower

object.create Build Status

Polyfills for object.create, available on bower.

This method has been added to the ECMAScript 5 specification and may not be available in all JavaScript implementations yet. Have a look there for compat table : http://kangax.github.io/compat-table/es5/#Object.create

Install

bower install object.create --save

Usage

Include this file:

src/object.create.js

Tests

Karma tests are available and can be runned with:

karma start

This will generate the code coverage report and the documentation.

Licence

WTFPL. Do what you want with this.

Thanks to

  • Mozilla to have provided the original polyfill,
  • Kangax to have provided the compat table.