Sorry, I misunderstood the issue when replying. The documentation is indeed confusing here. The type in the second "overload" should just be "Object", not "Array or Object" since the Array is already covered in the first Overload.