Skip to content

Commit 4686bd6

Browse files
committedMar 18, 2016
Fix typo
1 parent 377bc90 commit 4686bd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎array.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ MyArray.prototype.remove = function(data) {
1111
});
1212
};
1313
MyArray.prototype.search = function(data) {
14-
1514
var foundIndex = this.array.indexOf(data);
1615
if(~foundIndex) {
1716
return foundIndex;
@@ -44,4 +43,4 @@ array.add(5);
4443
array.add(5);
4544
array.print(); // => 1 2 4 5 5
4645
array.remove(5);
47-
array.print(); // => 1 2 4
46+
array.print(); // => 1 2 4

0 commit comments

Comments
 (0)
Please sign in to comment.