Optional
startthe inclusive starting depth of the returned prototype chain. defaults to 0
.
it can be one of the following:
start
option will be treated as 0
(i.e. starting from beginning of the chain array).Optional
endthe exclusive ending depth of the returned prototype chain. defaults to -1
.
it can be one of the following:
null
: slices the full prototype chain ending at the point where the given object is found (exclusive).
if the object is not found then the end
option will be treated as -1
(i.e. ending at the end of the chain array).Optional
deltathe additional depth to traverse on top of either start or end. make sure that you always provide a positive number.
start
option is specified, you will be given delta
number of prototype elements after the starting point.end
option is specified, you will be given delta
number of prototype elements before the ending point.
configuration options for slicing the prototype chain returned by prototypeChainOfObject.
only the following combination of options are supported:
start
andend
start
anddelta
end
anddelta
if all three options are defined, then the
delta
option will be ignored.