ensure-string-literal.js 212 B

12345678
  1. "use strict";
  2. var isStringLiteral = require("./is-string-literal");
  3. module.exports = function (arg) {
  4. if (isStringLiteral(arg)) return arg;
  5. throw new TypeError(arg + " does not represent string literal");
  6. };