MCPcopy
hub / github.com/pyodide/pyodide / slice

Method slice

src/core/pyproxy.ts:1660–1662  ·  view source on GitHub ↗

* See :js:meth:`Array.slice`. The :js:meth:`Array.slice` method returns a * shallow copy of a portion of a :py:class:`~collections.abc.Sequence` into a * new array object selected from ``start`` to ``stop`` (`stop` not included) * @param start Zero-based index at which to start extraction.

(start?: number, stop?: number)

Source from the content-addressed store, hash-verified

1658 * @returns A new array containing the extracted elements.
1659 */
1660 slice(start?: number, stop?: number): any {
1661 return Array.prototype.slice.call(this, start, stop);
1662 }
1663 /**
1664 * See :js:meth:`Array.lastIndexOf`. Returns the last index at which a given
1665 * element can be found in the Sequence, or -1 if it is not present.

Callers 15

mainFunction · 0.80
scheduler.tsFile · 0.80
onGlobalMessageFunction · 0.80
node_getBinaryResponseFunction · 0.80
shell_getBinaryResponseFunction · 0.80
nodeLoadScriptFunction · 0.80
calculateDirnameFunction · 0.80
encodeBuildIdFunction · 0.80
readMethod · 0.80
isPyodideFrameFunction · 0.80

Calls 1

callMethod · 0.80

Tested by

no test coverage detected