UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

15 lines (14 loc) 282 B
import { constructN } from 'ramda'; /** * Constructs RegExp. * * @func * @category Function * * @example * * test(R_.constructRegExp('end$', 'gi'), 'in the end') // true * */ var constructRegExp = /*#__PURE__*/constructN(2, RegExp); export default constructRegExp;