UNPKG

es-toolkit

Version:

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

9 lines (6 loc) 229 B
import { escapeRegExp as escapeRegExp$1 } from '../../string/escapeRegExp.mjs'; import { toString } from '../util/toString.mjs'; function escapeRegExp(str) { return escapeRegExp$1(toString(str)); } export { escapeRegExp };