mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-30 02:35:12 +02:00
55 lines
1.7 KiB
Markdown
55 lines
1.7 KiB
Markdown
# @digitransit-search-util/digitransit-search-util-tru-eq
|
|
|
|
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
|
|
|
## truEq
|
|
|
|
accept equality of non nullish values
|
|
|
|
### Parameters
|
|
|
|
- `val1` **([Boolean][1] \| [Number][2] | BigInt | [String][3] \| [Symbol][4] \| [Object][5])** First value to be compared
|
|
- `param2` **([Boolean][1] \| [Number][2] | BigInt | [String][3] \| [Symbol][4] \| [Object][5])** Second value to be compared
|
|
|
|
### Examples
|
|
|
|
```javascript
|
|
digitransit-util.truEq('2', '2');
|
|
//=true
|
|
```
|
|
|
|
Returns **[Boolean][1]** true/false
|
|
|
|
[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
|
|
|
|
[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
|
|
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
|
|
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol
|
|
|
|
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
|
|
<!-- This file is automatically generated. Please don't edit it directly:
|
|
if you find an error, edit the source file (likely index.js), and re-run
|
|
./scripts/generate-readmes in the digitransit-util project. -->
|
|
|
|
---
|
|
|
|
This module is part of the Digitransit-ui project. It is maintained in the
|
|
[HSLdevcom/digitransit-ui](https://github.com/HSLdevcom/digitransit-ui) repository, where you can create
|
|
PRs and issues.
|
|
|
|
### Installation
|
|
|
|
Install this module individually:
|
|
|
|
```sh
|
|
$ npm install @digitransit-search-util/digitransit-search-util-tru-eq
|
|
```
|
|
|
|
Or install the Digitransit-util module that includes it as a function:
|
|
|
|
```sh
|
|
$ npm install @digitransit-util/digitransit-util
|
|
```
|