redesign and fixes
This commit is contained in:
@@ -42,6 +42,19 @@ export function decodeTags(tags) {
|
||||
return outTags;
|
||||
}
|
||||
|
||||
export function compareArrays (arr1, arr2) {
|
||||
let result = false;
|
||||
arr1.every((elem) => {
|
||||
if(arr2.includes(elem)){
|
||||
result = true;
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
return result;
|
||||
}
|
||||
|
||||
export const openInNewTab = (url) => {
|
||||
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
|
||||
if (newWindow) newWindow.opener = null;
|
||||
|
||||
Reference in New Issue
Block a user