identical

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
845 B
Returns true if its arguments are identical, false otherwise.
1 contributor
Install identical as a package?
Copied
npm i @bit/justin-capalbo.ramda.identical
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
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
No preview available
modifieddraft
chevron_left
chevron_right
identical (
a:*,
b:*
) : Boolean

Returns true if its arguments are identical, false otherwise. Values are identical if they reference the same memory. NaN is identical to NaN; 0 and -0 are not identical.

Note this is merely a curried version of ES6 Object.is.

Example
const o = {};
     R.identical(o, o); //=> true
     R.identical(1, 1); //=> true
     R.identical(1, '1'); //=> false
     R.identical([], []); //=> false
     R.identical(0, -0); //=> false
     R.identical(NaN, NaN); //=> true
Arguments
a: *
b: *
Returns
Boolean

Help and resources