This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [1, "2", null, 4, undefined, 6, 7, 8]; | |
var j = { | |
step: function (arr) { | |
var current = -1; | |
var len = arr.length; | |
var err = new Error("End of list"); | |
return { | |
current: function () { | |
if (current < 0 || current >= len) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperty(Object.prototype, "clone", { | |
value: function (proto) { | |
this.prototype = Object.create(proto.prototype, { | |
_super: { | |
value: proto.prototype | |
} | |
}); | |
}, | |
configurable: false, | |
enumerable: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 4, | |
left: { | |
value: 25, | |
left: { | |
value: 1 | |
}, | |
right: { | |
value: 7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 1, | |
left: { | |
value: 2, | |
left: { | |
value: 4 | |
}, | |
right: { | |
value: 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = { | |
value: 4, | |
left: { | |
value: 25, | |
left: { | |
value: 1 | |
}, | |
right: { | |
value: 22 | |
} |