Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Latest commit

 

History

History
11 lines (10 loc) · 453 Bytes

File metadata and controls

11 lines (10 loc) · 453 Bytes

Magic variables are dangerous. Consider this:

const arguments = [ 1, 2, 3 ]
function go() {
	return arguments
}

The intention is most likely for go to return [ 1, 2, 3 ]. However, due to the magic arguments variable, that doesn't work. arguments being an anti-feature, it should not be used.