Python Array Apply Function In Js Example