source:
frontend/node_modules/core-js/internals/try-to-string.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 162 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | var $String = String; |
| 3 | |
| 4 | module.exports = function (argument) { |
| 5 | try { |
| 6 | return $String(argument); |
| 7 | } catch (error) { |
| 8 | return 'Object'; |
| 9 | } |
| 10 | }; |
Note:
See TracBrowser
for help on using the repository browser.
