Skip to content

Instantly share code, notes, and snippets.

@edrdesigner
Last active February 13, 2023 20:05
Show Gist options
  • Save edrdesigner/c21cc9a6603ff0f3e53e9471784d0ef4 to your computer and use it in GitHub Desktop.
Save edrdesigner/c21cc9a6603ff0f3e53e9471784d0ef4 to your computer and use it in GitHub Desktop.
static getUniqueArrayListBy(arr, key) {
return [...new Map(arr.map((item) => [item[key], item])).values()];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment