Skip to content

Commit d501307

Browse files
Update assembly-line.js
1 parent 68f8402 commit d501307

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

exercises/concept/assembly-line/assembly-line.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,33 +78,33 @@ export function isEmptyArray(value) {
7878
}
7979

8080
/**
81-
* Throws an error if an object is missing an "id" property.
81+
* Throws an error if an object is missing an "id" property or method.
8282
*
8383
* @param {object} object
84-
* @returns {boolean} undefined if the input has an "id" property, otherwise throws an error.
84+
* @returns {undefined} undefined if the input has an "id" property or method, otherwise throws an error.
8585
*/
8686
export function assertHasId(object) {
8787
throw new Error("Remove this line and implement the assertHasId function")
8888
}
8989

9090
/**
91-
* Checks if a value has a "type" property.
91+
* Checks if a value has a "type" property or method.
9292
*
9393
* @param {object} object
94-
* @returns {boolean} whether the input has a "type" property.
94+
* @returns {boolean} whether the input has a "type" property or method.
9595
*/
9696
export function hasType(object) {
9797
throw new Error("Remove this line and implement the hasType function")
9898
}
9999

100100
/**
101-
* Checks if a value has a "constructor" property.
101+
* Checks if a value has an "id" property.
102102
*
103103
* @param {object} object
104-
* @returns {boolean} whether the input has a "constructor" property.
104+
* @returns {boolean} whether the input has an "id" property.
105105
*/
106-
export function hasConstructorProperty(object) {
107-
throw new Error("Remove this line and implement the hasConstructorProperty function")
106+
export function hasIdProperty(object) {
107+
throw new Error("Remove this line and implement the hasIdProperty function")
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)