fix(challenge): Assert arrays contain expected values (#40693)
This commit is contained in:
@ -44,16 +44,16 @@ Add all of the `own` properties of `beagle` to the array `ownProps`. Add all of
|
||||
|
||||
# --hints--
|
||||
|
||||
The `ownProps` array should include `"name"`.
|
||||
The `ownProps` array should only contain `"name"`.
|
||||
|
||||
```js
|
||||
assert(ownProps.indexOf('name') !== -1);
|
||||
assert.deepEqual(ownProps, ['name']);
|
||||
```
|
||||
|
||||
The `prototypeProps` array should include `"numLegs"`.
|
||||
The `prototypeProps` array should only contain `"numLegs"`.
|
||||
|
||||
```js
|
||||
assert(prototypeProps.indexOf('numLegs') !== -1);
|
||||
assert.deepEqual(prototypeProps, ['numLegs']);
|
||||
```
|
||||
|
||||
You should solve this challenge without using the built in method `Object.keys()`.
|
||||
|
Reference in New Issue
Block a user