Immutable Array Methods In Typescript Vs Jquery