kriskowal/es5-shim — pull request #118 by ryanve (2012-07-04 21:54:24+00:00)
Title: Fix Object.create fill to accept instanceof Object—not just typeof object.

The native [Object.create](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create/) accepts `instanceof Object` and `null`. For example, `Object.create(jQuery)` is totally legit. This pull fixes the polyfill to that effect. The previous typechecking insufficiently used only [typeof](https://developer.mozilla.org/en/JavaScript/Reference/Operators/typeof) `"object". Use [typeof](https://developer.mozilla.org/en/JavaScript/Reference/Operators/typeof) `"object"`|`"function"` rather than `instanceof Object` tho for tighter compatibility with the native version. See comments inline.