File tree Expand file tree Collapse file tree
exercises/concept/assembly-line Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
8686export 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 */
9696export 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/**
You can’t perform that action at this time.
0 commit comments