(key)
| 1430 | } |
| 1431 | |
| 1432 | function normalizeKey(key) { |
| 1433 | // Cast the key to a string, as that's all we can set as a key. |
| 1434 | if (typeof key !== 'string') { |
| 1435 | console.warn(key + ' used as a key, but it is not a string.'); |
| 1436 | key = String(key); |
| 1437 | } |
| 1438 | |
| 1439 | return key; |
| 1440 | } |
| 1441 | |
| 1442 | function getCallback() { |
| 1443 | if (arguments.length && typeof arguments[arguments.length - 1] === 'function') { |
no outgoing calls
no test coverage detected