- More Full-stack React TS & Node. Revising ES6 features
- revising
bind
,call
bind
is used to replace the instance instance ofthis
. if a function call that is reliant onthis
it will have been altered to the new contextcall
is used at the the function is being called.apply
is similar to call but the second argument you provide is an array of argument which will be supplied to for the method that is being called.- revised how
reduce
works - use sets for unique lists, use maps for unique object collections.
- revising