UNPKG
care-js
Version:
latest (3.3.4)
3.3.4
Standard library
care-js
/
internals
/
not-a-regexp.js
8 lines
(6 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
isRegExp =
require
(
'../internals/is-regexp'
);
module
.
exports
=
function
(
it
) {
if
(
isRegExp
(it)) {
throw
TypeError
(
"The method doesn't accept regular expressions"
); }
return
it; };