Minor var order juggle in compact.

This commit is contained in:
John-David Dalton
2017-02-05 22:45:15 -08:00
parent 23c0bc0e7a
commit 7479d282bc

View File

@@ -13,8 +13,8 @@
*/
function compact(array) {
let index = -1
const length = array == null ? 0 : array.length
let resIndex = 0
const length = array == null ? 0 : array.length
const result = []
while (++index < length) {