mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-06-15 20:30:41 +02:00
.. | ||
index.js | ||
LICENSE-AGPL.txt | ||
LICENSE-EUPL.txt | ||
package.json | ||
README.md | ||
test.js |
@digitransit-search-util/digitransit-search-util-tru-eq
truEq
accept equality of non nullish values
Parameters
val1
(Boolean | Number | BigInt | String | Symbol | Object) First value to be comparedparam2
(Boolean | Number | BigInt | String | Symbol | Object) Second value to be compared
Examples
digitransit-util.truEq('2', '2');
//=true
Returns Boolean true/false
This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.
Installation
Install this module individually:
$ npm install @digitransit-search-util/digitransit-search-util-tru-eq
Or install the Digitransit-util module that includes it as a function:
$ npm install @digitransit-util/digitransit-util