Skip to content

Instantly share code, notes, and snippets.

View jsjain's full-sized avatar
🏠
Working from home

Shubham Jain jsjain

🏠
Working from home
View GitHub Profile
@jsjain
jsjain / isEqual.js
Last active February 14, 2024 16:17
basic native implementation for isEqual lodash
const isEqual = (first: any, second: any): boolean => {
if (first === second) {
return true;
}
if ((first === undefined || second === undefined || first === null || second === null)
&& (first || second)) {
return false;
}
const firstType = first?.constructor.name;
const secondType = second?.constructor.name;
/*
* Copyright (c) 2011-2017 HERE Global B.V. and its affiliate(s).
* All rights reserved.
* The use of this software is conditional upon having a separate agreement
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
package com.mapstutorial.simplerouting;