(value)
| 1642 | return '' + value; |
| 1643 | } |
| 1644 | function getToStringValue(value) { |
| 1645 | switch (typeof value) { |
| 1646 | case 'boolean': |
| 1647 | case 'number': |
| 1648 | case 'object': |
| 1649 | case 'string': |
| 1650 | case 'undefined': |
| 1651 | return value; |
| 1652 | |
| 1653 | default: |
| 1654 | // function, symbol are assigned as empty strings |
| 1655 | return ''; |
| 1656 | } |
| 1657 | } |
| 1658 | |
| 1659 | /** |
| 1660 | * Copyright (c) 2013-present, Facebook, Inc. |
no outgoing calls
no test coverage detected