📅  最后修改于: 2022-03-11 15:02:23.793000             🧑  作者: Mango
**compare two arrays and return a new array with only items present in both arrays:
const justCoolStuff = (arr1, arr2) => arr1.filter(item => arr2.includes(item));