Js Array Methods Map Filter Python