Guest User

Untitled

a guest
Nov 16th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. points = [
  2. [21, 20.23],
  3. [21, 20.23],
  4. [23, 22.77],
  5. [25, 25.11],
  6. [27, 27.26],
  7. [28, 28.28]
  8. ];
  9.  
  10. points = Array.from(
  11. new Set(
  12. reg.points.map(function (value) {
  13. return JSON.stringify(value);
  14. })
  15. )
  16. )
  17. .map(function (value) {
  18. return JSON.parse(value);
  19. })
Add Comment
Please, Sign In to add comment