* Use function string name to check built-in types, * because a simple equality check will fail when running * across different vms / iframes.
(fn)
| 1414 | * across different vms / iframes. |
| 1415 | */ |
| 1416 | function getType (fn) { |
| 1417 | var match = fn && fn.toString().match(/^\s*function (\w+)/); |
| 1418 | return match && match[1] |
| 1419 | } |
| 1420 | |
| 1421 | function isType (type, fn) { |
| 1422 | if (!Array.isArray(fn)) { |
no outgoing calls
no test coverage detected