test: formatting and removing Array.prototype methods
replace undefined with null