From 2d8c5ab42a69c31c36f4e72daf0ca02c240665ce Mon Sep 17 00:00:00 2001 From: Aleksei Zhuchkov Date: Mon, 6 Jan 2025 13:26:03 +0300 Subject: [PATCH 1/2] fix: description for task removeProperties --- src/objects-tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects-tasks.js b/src/objects-tasks.js index 38993554..7952fa8a 100644 --- a/src/objects-tasks.js +++ b/src/objects-tasks.js @@ -46,7 +46,7 @@ function mergeObjects(/* objects */) { * @example * removeProperties({a: 1, b: 2, c: 3}, ['b', 'c']) => {a: 1} * removeProperties({a: 1, b: 2, c: 3}, ['d', 'e']) => {a: 1, b: 2, c: 3} - * removeProperties({name: 'John', age: 30, city: 'New York'}, 'age') => {name: 'John', city: 'New York'} + * removeProperties({name: 'John', age: 30, city: 'New York'}, ['age']) => {name: 'John', city: 'New York'} * */ function removeProperties(/* obj, keys */) { From b3023894253233801ca579acb171a607a4437e0f Mon Sep 17 00:00:00 2001 From: Aleksei Zhuchkov Date: Tue, 7 Jan 2025 20:27:21 +0300 Subject: [PATCH 2/2] fix: description for getJSON --- src/objects-tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects-tasks.js b/src/objects-tasks.js index 7952fa8a..6c207cae 100644 --- a/src/objects-tasks.js +++ b/src/objects-tasks.js @@ -161,7 +161,7 @@ function Rectangle(/* width, height */) { * * @example * [1,2,3] => '[1,2,3]' - * { width: 10, height : 20 } => '{"height":10,"width":20}' + * { height: 10, width: 20 } => '{"height":10,"width":20}' */ function getJSON(/* obj */) { throw new Error('Not implemented');