* Extracts the `nodeName` from a string of markup. * * NOTE: Extracting the `nodeName` does not require a regular expression match * because we make assumptions about React-generated markup (i.e. there are no * spaces surrounding the opening tag and there is at least one attribute). * * @param
(markup)
| 1866 | * @see http://jsperf.com/extract-nodename |
| 1867 | */ |
| 1868 | function getNodeName(markup) { |
| 1869 | return markup.substring(1, markup.indexOf(' ')); |
| 1870 | } |
| 1871 | |
| 1872 | var Danger = { |
| 1873 |
no outgoing calls
no test coverage detected