mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 04:18:24 -04:00
8 lines
189 B
JavaScript
8 lines
189 B
JavaScript
|
|
'use strict';
|
||
|
|
var $TypeError = TypeError;
|
||
|
|
|
||
|
|
module.exports = function (argument) {
|
||
|
|
if (typeof argument == 'string') return argument;
|
||
|
|
throw new $TypeError('Argument is not a string');
|
||
|
|
};
|