Skip to main content
Module

x/lodash_es/mod.ts>eq

lodash for deno use
Latest
function eq
import { eq } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Performs a SameValueZero comparison between two values to determine if they are equivalent.

Examples

var object = { 'a': 1 }; var other = { 'a': 1 };

_.eq(object, object); // => true

_.eq(object, other); // => false

_.eq('a', 'a'); // => true

_.eq('a', Object('a')); // => false

_.eq(NaN, NaN); // => true

Parameters

value

The value to compare.

other

The other value to compare.