📜  通用箭头函数打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:12.184000             🧑  作者: Mango

代码示例3
// ES6: With arrow function  
var getResult = (username: string, points: number): string => {  
  return `${ username } scored ${ points } points!`;  
};

getResult('joyous jackal' , 100);