[Lodash][Array] _.compact
_.compact(array) Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey. Since 0.1.0 Arguments array(Array): The array to compact. Returns (Array): Returns the new array of filtered values. Example _.compact([0, 1, false, 2, '', 3]); // => [1, 2, 3] 마인드맵 _.compact 메서드를 활용해서 false 형태의 값을 제거한 새로운 배열을 반환합니다. 새로운 배열반환 ( false 없음 ) if 문을 이용해 배열의 ..