Better HN
topnewbestaskshowjobs
Log inSign up

guest1206

1 karma · joined Dec 7, 2014 (11y ago) · 1 submissions

Submissions

comment 11y ago · link · parent

  > a JavaScript program nontrivial if:
  > ...
  > - calling methods with the square bracket notation

  -something[key](x);
  +var f = something[key];
  +f.call(something, x);
phew, that really make my program more trivial