This function is a method function, defined in the core so multiple packages can add methods to it.
The object extend is a method function with options.
The source of this document is in Macaulay2Doc/shared.m2:19:0.