Advertisement
FlameWolf

Array.prototype.equals

Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Array.prototype.equals = function(target) {
  2.   return this.every(function(value, index) {
  3.     return (value == target[index]);
  4.   });
  5. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement