Typescript String Is Not A Functional Approach