How merge two objects and calculate the average of their values in javascript?

前端 未结 0 379
悲&欢浪女
悲&欢浪女 2020-12-28 11:44

I\'m learning tdd and I would like to created a function to expected this result.

//What I expect
/*
[
    {book_id: 1, name:\'NameBook\', average: x},
    {b         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题