We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b0c9be commit fd66ffeCopy full SHA for fd66ffe
src/functions-and-arrays.js
@@ -142,7 +142,18 @@ const wordsUnique = [
142
'bring'
143
];
144
145
-function uniquifyArray() {}
+function uniquifyArray(array) {
146
+ if (array.length === 0 ){
147
+ return null
148
+ }
149
+ let uniquiteArray = []
150
+ for (let i = 0; i < array.length; i++){
151
+ if (uniquiteArray.indexOf(array[i]) === -1) {
152
+ uniquiteArray.push(array[i])
153
154
155
+ return uniquiteArray
156
+}
157
158
159
0 commit comments