ES6 array patterns for immutabilityOctober 16, 2016#javascriptHere is a collection of snippets for manipulating arrays using es6 features in an immutable way aiming towards a more functional style of…