# defined
-
JavaScript _ 2016-01-14
Unexpected usage of Array.length
I like reading code of other developers. It’s a nice way to learn patterns, techniques and small tricks. Recently I found something about
Array.prototype.lengthwhich caught my attention. -
JavaScript _ 2016-01-05
The return statement is not the end (but it should be)
Well, I kind of lied in the title of this article. Of course that it is the end of the function. Once we call
returneverything else after that is simply not executed. Ops … I did it again, I kind of lied again. -
JavaScript _ 2013-11-08
An alternative JavaScript for loop syntax
As javascript developers we all have to write a lot of for loops. Before a couple of months I saw an alternative syntax, which I really liked. It saves some time and it looks much nicer. However, one of my colleagues reported that this fancy syntax is not working as it should.
-
JavaScript _ 2013-10-28
JavaScript: dependency free extend method
While I worked on AbsurdJS I needed a function which accepts numerous objects and combines their properties. I.e. something like the _.extend method of UnderscoreJS. What I did is actually to use one more dependency just because of such method. John-David Dalton nicely pointed out my mistake and added a simple function which solved the problem. I change it a bit and now it acts as UnderscoreJS's version.