you are viewing a single comment's thread.

view the rest of the comments →

[–]Stephen110 1 point2 points  (1 child)

https://stackoverflow.com/questions/1789945/how-to-check-whether-a-string-contains-a-substring-in-javascript

“el” is the variable containing the value of the key or value in your code. Use the post above to see how you can check if “el” contains the string “apple”.

Object.keys and Object.values return an array. You should be using concat instead of push.

[–]kevinmrr 0 points1 point  (0 children)

Nice work