timoxley/to-array — pull request #6 by dominicbarnes (2014-01-23 23:01:29+00:00)
Title: Fix for Safari NodeList Bug

This addresses issue #5 by adding a 2nd part to the condition that checks for input `Function` objects.

In Safari, `typeof document.querySelectorAll("a") === "function"`, which is wrong. A `NodeList` should be `typeof "object"`. In any case, this works around that bug.

I discovered this while working on a component of mine and testing out Safari/Windows.