deepKeys doesn't work with sparsed arrays
it("deepKeys should not cause an error with sparsed arrays", () => {
// fixture setup
const mockedEntity = {
// eslint-disable-next-line no-sparse-arrays
open_hours: [1, , 3],
};
const sut = () => {
deepKeys(mockedEntity);
};
// exercise system
// verify outcome
expect(sut).not.toThrow();
});
Error name: "TypeError"
Error message: ".for is not iterable"
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4