What is the intended solution for processManifest?

The processManifest function seems like it wants you to use the previously written validateManifest and normalizeUnits functions. Ok. If a manifest is valid, validateManifest will return {}. {} !== {}, so it’s tricky to write an if statement within processManifest that checks if validateManifest validated the manifest. Other searching suggested using Object.keys(result).length === 0 but Object.keys has not been covered in the fCC curriculum. Is this the intended solution?

I can imagine writting more complex if/else statements, but this results in nearly duplicating the validateManifest function within processManifest which cannot possibly be what is intended.

Welcome to the forum @terebin8!

Usually, we would need a link to the challenge to be able to help you, but I just happened to be working with that one for someone else: Build a Cargo Manifest Validator: Build a Cargo Manifest Validator | freeCodeCamp.org

This is just one way you can check to see if the object is empty. You could also loop over it to see if it has a property.

Happy coding!