Pablo

Pablo.isDocument(obj)

Returns true if the passed argument is the html document object; otherwise false.

var doc    = document,
    notDoc = document.body;

alert(Pablo.isDocument(doc));
alert(Pablo.isDocument(notDoc));

Pablo.isDocument(obj)

Returns true if the passed argument is the html document object; otherwise false.

var doc    = document,
    notDoc = document.body;

alert(Pablo.isDocument(doc));
alert(Pablo.isDocument(notDoc));
Painting is just another way of keeping a diary.
Pablo Picasso