Array Map Javascript Object Length Property Js