Sha256: db504784e2522a764f7d7834ec8e86c7fcbea5b7ca90decda7c50d9a985de78d
Contents?: true
Size: 314 Bytes
Versions: 66
Compression:
Stored size: 314 Bytes
Contents
// 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)); };
Version data entries
66 entries across 30 versions & 8 rubygems