---
title: "Comment by Opeyemi Adeyeye on \"Three methods to get unique values from arrays in ES6.\" | Hashnode"
description: "Nice Read! You might want to edit your first program implementation as you console result variable but there&#39;s no where you declared and assigned value to i"
url: "https://hashnode.com/posts/three-methods-to-get-unique-values-from-arrays-in-es6/5e817302ba34afe713b7d267/comment/5e81c6198267309a3c271bf0"
---

[Discussion](https://hashnode.com/posts/three-methods-to-get-unique-values-from-arrays-in-es6/5e817302ba34afe713b7d267)

Comment [Three methods to get unique values from arrays in ES6.](https://hashnode.com/posts/three-methods-to-get-unique-values-from-arrays-in-es6/5e817302ba34afe713b7d267)

[Opeyemi Adeyeye](https://hashnode.com/@opeyemiadeyeye)

[Mar 30, 2020](https://hashnode.com/posts/three-methods-to-get-unique-values-from-arrays-in-es6/5e817302ba34afe713b7d267/comment/5e81c6198267309a3c271bf0)

Nice Read!

You might want to edit your first program implementation as you console **result** variable but there's no where you declared and assigned value to it.

I guess you skipped to assign the function call to result variable like const result = useSet(arr)

[Everistus Olumese](https://hashnode.com/@bytenaija)

[Mar 30, 2020](https://hashnode.com/posts/three-methods-to-get-unique-values-from-arrays-in-es6/5e817302ba34afe713b7d267/comment/5e81c6198267309a3c271bf0#reply-5e81c6f18267309a3c271bfc)

Thank you for the correction. You are quite right and I have edited it
