Debian Codegraph @

packages/babel-plugin-polyfill-es-shims/test/fixtures/usage-pure/proposal-change-array-by-copy/output.mjs

raw symbols SCIP
1 var _arr, _arr2, _arr3, _arr4;
2
3 import _ArrayPrototypeWith from "array.prototype.with";
4 import _ArrayPrototypeToSorted from "array.prototype.tosorted";
5 import _ArrayPrototypeToReversed from "array.prototype.toreversed";
6 import _ArrayPrototypeToSpliced from "array.prototype.tospliced";
7
8 _ArrayPrototypeWith([3, 1, 2], 0, 3);
9
10 _ArrayPrototypeToSorted([3, 1, 2]);
11
12 _ArrayPrototypeToReversed([3, 1, 2]);
13
14 _ArrayPrototypeToSpliced([3, 1, 2], 1, 1, 3, 4);
15
16 (_arr = arr, Array.isArray(_arr) ? _ArrayPrototypeWith : Function.call.bind(_arr.with))(_arr, 0, 3);
17 (_arr2 = arr, Array.isArray(_arr2) ? _ArrayPrototypeToSorted : Function.call.bind(_arr2.toSorted))(_arr2);
18 (_arr3 = arr, Array.isArray(_arr3) ? _ArrayPrototypeToReversed : Function.call.bind(_arr3.toReversed))(_arr3);
19 (_arr4 = arr, Array.isArray(_arr4) ? _ArrayPrototypeToSpliced : Function.call.bind(_arr4.toSpliced))(_arr4, 1, 1, 3, 4);