Filter | Map | Foreach
Filter function
Filter function check for the true/false condition for the expression. if true then it will assign that element into left side variable list.
In filter function argument we can put function call, function body, lamda, lamda without parenthesis with 'It'
Without using loop we can iterate the collection with filter function
filter with function call
filter with function body
filter with lamda
filter without parenthesis and use 'it'
filter with user define class
without iterating user list in a loop we can just use filter and get the filter list in a single line
Map
map will transform the collection element value to another form
if we want to edit every element of collection then with map function we can add/remove fields of every element
transform num array into square array
Transform user object to paid user object by adding a field to each list element
ForEach
Foreach concise the syntax of for loop