A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sindresorhus/dot-prop/issues/108 below:

deepKeys doesn't work with sparsed arrays: ".for is not iterable" · Issue #108 · sindresorhus/dot-prop · GitHub

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