Ad
  • Default User Avatar

    That last test caught me offguard. Maybe the description could've mentioned possible edge cases.

  • Custom User Avatar

    last test fails, even tho it works locally when i copy paste inputs for the last test (the one with 300 nesting)

    3h wasted damn...

    please fix...

  • Custom User Avatar

    I've got a problem with final case.

    Input object is something like { ..., ddd: [ 'ddd[0]', ... ], ...}
    Input path is kinda ddd[0].asdfe.ddd[2]...

    When we resolve path like this, we go to the array ddd, take the first element (which is ddd[0]) and then we need to assign asdfe to the string ddd[0], but it would not work for primitive values like String.

    So test fails because we can't read .ddd in asdfe, because it's undefined in string.

    It can be assumed, that this test means that we need to go up and use the parent Array for values like this, but it's not clear and there is nothing about in description.

    We need to fix the last test or update the description with better clarification, because this behavior is implicit