source:
frontend/node_modules/core-js/internals/to-string.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 259 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | var classof = require('../internals/classof'); |
| 3 | |
| 4 | var $String = String; |
| 5 | |
| 6 | module.exports = function (argument) { |
| 7 | if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); |
| 8 | return $String(argument); |
| 9 | }; |
Note:
See TracBrowser
for help on using the repository browser.
