CS569 Homework
1. Write a summary with TypeScript code examples of the Singleton pattern.
2. What advantage do we get from using the Decorator pattern?
3. Write TypeScipt code using RxJS to convert an array of objects from [{first: string, last: string }]
to [{fullname: string}]
.
Use the from
operator to create the observable, in addition to map
and toArray
operators.