mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 22:11:08 +03:30
9 lines
314 B
JavaScript
Vendored
9 lines
314 B
JavaScript
Vendored
// helper for String#{startsWith, endsWith, includes}
|
|
var isRegExp = require('./_is-regexp');
|
|
var defined = require('./_defined');
|
|
|
|
module.exports = function (that, searchString, NAME) {
|
|
if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
|
|
return String(defined(that));
|
|
};
|