だいぶ、mapやfilterの使い方もこなれてきて、いろいろな自動化を出来るようになってきました。その備忘録として残しておこうと思います。 filterメソッドで配列内の空白を削除する function myFunction() { const array = ['aaa', 'bbb', '', '']; const newArray = array.filter(value ...
This is a filter function that aims to be a pretty efficient way of filtering an array of objects based on whether any of the values contain the filter term. It's not always easy to tell if an object ...