Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 558 Bytes

CREDITS.md

File metadata and controls

16 lines (10 loc) · 558 Bytes

Credits

Code snippets used throughout

vals = 1 <= arguments.length ? slice.call(arguments, 0) : [];

// Somewhere later...
app.some_function.apply(some_scope, vals);

This lets you have variable length argument lists. Explanation here

void 0

This is a safer way to use undefined since it is a statement (that always returns undefined) and cannot be overwritten (undefined can). Explanation here