UNPKG

1.11 kBMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function equalText
4
5Check equality of two strings. Comparison is case sensitive.
6
7For matrices, the function is evaluated element wise.
8
9
10## Syntax
11
12```js
13math.equalText(x, y)
14```
15
16### Parameters
17
18Parameter | Type | Description
19--------- | ---- | -----------
20`x` | string &#124; Array &#124; DenseMatrix | First string to compare
21`y` | string &#124; Array &#124; DenseMatrix | Second string to compare
22
23### Returns
24
25Type | Description
26---- | -----------
27number &#124; Array &#124; DenseMatrix | Returns true if the values are equal, and false if not.
28
29
30## Examples
31
32```js
33math.equalText('Hello', 'Hello') // returns true
34math.equalText('a', 'A') // returns false
35math.equal('2e3', '2000') // returns true
36math.equalText('2e3', '2000') // returns false
37
38math.equalText('B', ['A', 'B', 'C']) // returns [false, true, false]
39```
40
41
42## See also
43
44[equal](equal.md),
45[compareText](compareText.md),
46[compare](compare.md),
47[compareNatural](compareNatural.md)