refactor(Cypress): Moved Cypress to the main folder of the project, as I don't need a sub project for now.
This commit is contained in:
33
node_modules/ramda/es/test.js
generated
vendored
Normal file
33
node_modules/ramda/es/test.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import _cloneRegExp from "./internal/_cloneRegExp.js";
|
||||
import _curry2 from "./internal/_curry2.js";
|
||||
import _isRegExp from "./internal/_isRegExp.js";
|
||||
import toString from "./toString.js";
|
||||
/**
|
||||
* Determines whether a given string matches a given regular expression.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.12.0
|
||||
* @category String
|
||||
* @sig RegExp -> String -> Boolean
|
||||
* @param {RegExp} pattern
|
||||
* @param {String} str
|
||||
* @return {Boolean}
|
||||
* @see R.match
|
||||
* @example
|
||||
*
|
||||
* R.test(/^x/, 'xyz'); //=> true
|
||||
* R.test(/^y/, 'xyz'); //=> false
|
||||
*/
|
||||
|
||||
var test =
|
||||
/*#__PURE__*/
|
||||
_curry2(function test(pattern, str) {
|
||||
if (!_isRegExp(pattern)) {
|
||||
throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString(pattern));
|
||||
}
|
||||
|
||||
return _cloneRegExp(pattern).test(str);
|
||||
});
|
||||
|
||||
export default test;
|
Reference in New Issue
Block a user