cinsoft/My-Library — pull request #4 by Raynos (2012-01-22 20:07:46+00:00)
Title: Added `undefined` check to `isHostObjectProperty`

Checking for `undefined` is safer then for truthy.

Known issues

`isHostObjectProperty(document.body, 'nextElementSibling');`

`isHostObjectProperty(document.body.childNodes, 'length');`

Note: I could not find any unit tests so I did not edit or run them.

Note 2: added `undefined` to outer IIFE for gaurding againts `window.undefined = true` and for better minification)