UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

13 lines (8 loc) 336 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const escapeRegExp$1 = require('../../string/escapeRegExp.js'); const toString = require('../util/toString.js'); function escapeRegExp(str) { return escapeRegExp$1.escapeRegExp(toString.toString(str)); } exports.escapeRegExp = escapeRegExp;