MCPcopy Index your code
hub / github.com/angular/angular / expectArraySplice

Function expectArraySplice

packages/core/test/util/array_utils_spec.ts:43–46  ·  view source on GitHub ↗
(array: any[], index: number)

Source from the content-addressed store, hash-verified

41
42 describe('fast arraySplice', () => {
43 function expectArraySplice(array: any[], index: number) {
44 arraySplice(array, index, 1);
45 return expect(array);
46 }
47
48 it('should remove items', () => {
49 expectArraySplice([0, 1, 2], 0).toEqual([1, 2]);

Callers 1

Calls 1

arraySpliceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…