Simon Willison’s Weblog

Subscribe

13th November 2007 - Link Blog

JavaScript Method Overloading. John Resig shows a clever trick for overloading JavaScript methods based on the number of arguments, using the little-known .length property of a JavaScript function object.

This is a link post by Simon Willison, posted on 13th November 2007.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe