diff --git a/exercises/practice/lens-person/.meta/config.json b/exercises/practice/lens-person/.meta/config.json index a9e8809f4e..3209c732ad 100644 --- a/exercises/practice/lens-person/.meta/config.json +++ b/exercises/practice/lens-person/.meta/config.json @@ -3,6 +3,9 @@ "sarava338", "Cool-Katt" ], + "contributors": [ + "themetar" + ], "files": { "solution": [ "lens-person.js" diff --git a/exercises/practice/lens-person/lens.js b/exercises/practice/lens-person/lens.js index 4215d500ab..7e6163cc12 100644 --- a/exercises/practice/lens-person/lens.js +++ b/exercises/practice/lens-person/lens.js @@ -1,30 +1,11 @@ export class Lens { /** * - * @param {Function} getter - * @param {Function} setter + * @param {Function} getter - Function to get the value using a lens + * @param {Function} setter - Function to set the value using a lens */ constructor(getter, setter) { this.get = getter; this.set = setter; } - - /** - * Function to get the value from a lens - * @param {Person} person - * @returns {Person} - */ - get(person) { - return this.get(person); - } - - /** - * Function to set the value using a lens - * @param {Person} person - * @param {any} value - * @returns {Person} - */ - set(person, value) { - return this.set(value, person); - } }