Skip to content

Instantly share code, notes, and snippets.

Focusing on web and REST api

Viktor Hardubej Viktor19931

Focusing on web and REST api
Block or report user

Report or block Viktor19931

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View enter in terminal
open -a Google\ Chrome --args --disable-web-security --user-data-dir
Viktor19931 / test.js
Last active May 2, 2019
merge two arrays and make data uniq by id
View test.js
const mergeArray = (arr1, arr2) => {
let arr = [...arr1, ...arr2]
const uniqueArr = arr
.map(e =>
.map((e, i, keysArr) => keysArr.indexOf(e) === i && i)
.filter(e => arr[e]).map(e => arr[e]);
return uniqueArr;
You can’t perform that action at this time.