1// 905. 按奇偶排序数组
2/**
3 * @param {number[]} A
4 * @return {number[]}
5 */
6var sortArrayByParity = function(A) {
7 return A.filter(value => value % 2 === 0).concat(
8 A.filter(value => value % 2 === 1)
9 )
10};
1// 905. 按奇偶排序数组
2/**
3 * @param {number[]} A
4 * @return {number[]}
5 */
6var sortArrayByParity = function(A) {
7 return A.filter(value => value % 2 === 0).concat(
8 A.filter(value => value % 2 === 1)
9 )
10};