@digitransit-search-util/digitransit-search-util-tru-eq
v0.0.2
Published
digitransit-search-util tru-eq module
Downloads
82
Readme
@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