Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

test

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
21
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
4 KB
Determines whether a given string matches a given regular expression.
1 contributor
Install test as a package?
Copied
npm i @bit/ramda.ramda.test
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
test (
pattern:RegExp,
str:String
) : Boolean

Determines whether a given string matches a given regular expression.

Example
R.test(/^x/, 'xyz'); //=> true
     R.test(/^y/, 'xyz'); //=> false
Arguments
pattern: RegExp
str: String
Returns
Boolean