|
|
|
|
|
by seasoup
5891 days ago
|
|
Named parameters are awesome. The equivalent pattern in javascript is passing in an options object. foo({
'name': 'bar',
'title': 'Bar'
}); This means not having to look up what the exact order of options are, nor having to pass in a bunch of null parameters because the one you want is the last parameter. Very cool. } |
|