It's hard to give a useful answer without more context.
Hash.from = $H;
Assigns value of variable $H
to property from
of object Hash
. This is all user-defined stuff.
Array.from = $A;
Assigns value of variable $A
to property from
of object Array
. This is all user-defined except Array, which is a built-in constructor for arrays.
The side effect of modifying built-in constructor functions is the possibility that two sets of modifications will conflict with each other. For example, if prototype.js gives Array
a from
property and then myCoolLibrary.js also gives Array
a from
property, probably with a different API, one library or the other is bound to break.