6 lines
134 B
JavaScript
6 lines
134 B
JavaScript
const {toString} = Object.prototype;
|
|
|
|
export default function isRegexp(value) {
|
|
return toString.call(value) === '[object RegExp]';
|
|
}
|