compact() -> newArray返回一个不包含 null/undefined 值元素的数组的新版本。

样例
['frank', , 'sue', , 'sally', null].compact()
// -> ['frank', 'sue', 'sally']