SHARE
TWEET

Untitled

a guest Dec 16th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Array1
  2. [
  3.  0: [ ID: 0, translationcode: 'a' ],
  4.  1: [ ID: 1, translationcode: 'a' ],
  5.  2: [ ID: 2, translationcode: 'b' ],
  6.  3: [ ID: 3, translationcode: 'c' ]
  7. ]
  8.    
  9. // Array2
  10. [
  11.  0: [
  12.       0: [ ID: 0, translationcode: 'a' ],
  13.       1: [ ID: 1, translationcode: 'a' ]
  14.     ],
  15.  1: [ ID: 2, translationcode: 'b' ],
  16.  2: [ ID: 3, translationcode: 'c' ]
  17. ]
  18.    
  19. let found = arr2.some(function (el) {
  20.       return el.translationcode === item.translationcode;
  21.  });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top