* Use function string name to check built-in types, * because a simple equality check will fail when running * across different vms / iframes.
(fn)
| 1758 | * across different vms / iframes. |
| 1759 | */ |
| 1760 | function getType (fn) { |
| 1761 | var match = fn && fn.toString().match(/^\s*function (\w+)/); |
| 1762 | return match ? match[1] : '' |
| 1763 | } |
| 1764 | |
| 1765 | function isSameType (a, b) { |
| 1766 | return getType(a) === getType(b) |
no outgoing calls
no test coverage detected