mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Fixing non compliant files (Ciphers, Conversions and Data Structures)
This commit is contained in:
@@ -21,7 +21,7 @@ var Node = (function () {
|
||||
|
||||
// Search the tree for a value
|
||||
Node.prototype.search = function (val) {
|
||||
if (this.value == val) {
|
||||
if (this.value === val) {
|
||||
return this
|
||||
} else if (val < this.value && this.left != null) {
|
||||
return this.left.search(val)
|
||||
|
||||
Reference in New Issue
Block a user