forked from PCR-JS-2022/JS-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (46 loc) · 1.34 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* @typedef Person
* @type {object}
* @property {string} name - имя
* @property {string} birthdate - дата рождения
*/
/**
* @typedef Gift
* @type {object}
* @property {string} title - название подарка
* @property {number} price - стоимость подарка
*/
/**
* @param {string} date - дата отсчета
* @param {Array<Person>} phoneList - список друзей из телефонной книги
* @returns {Array<Person>} массив друзей, у которых дни рождения после даты отсчета
*/
export function getNextBirthdays(date, phoneList) {
};
/**
* @param {Array<Person>} phoneList - список друзей из телефонной книги
* @returns {Array<{
* month: string,
* friends: Array<Person>,
* }>}
*/
export function getMonthsList(phoneList) {
};
/**
* @param {Array<{
* name: string,
* birthdate: string,
* wishList: Array<Gift>
* }>} phoneList - список друзей из телефонной книги
* @returns {{
* friendsList: Array<{
* name: string,
* birthdate: string,
* present: Gift
* }>,
* totalPrice: number
* }}
*/
export function getMinimumPresentsPrice(phoneList) {
};
module.exports = { getNextBirthdays, getMonthsList, getMinimumPresentsPrice };