Every company is divided into shares. Shares are issued to shareholders. Founders usually get them for free, whereas investors need to pay for each share. Aggregating all shares of a shareholder, we get the cap table: a list of all shareholders and the percentage they own in the company.
The goal of this challenge is to build a simple cap table management app.
First, we need to define a shareholder. For this, we use Flow to define a basic JavaScript object:
type Shareholder = {|
_id: string