UNPKG

189 BJavaScriptView Raw
1'use strict';
2var $TypeError = TypeError;
3
4module.exports = function (argument) {
5 if (typeof argument == 'string') return argument;
6 throw new $TypeError('Argument is not a string');
7};