We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3710218 commit fdc4689Copy full SHA for fdc4689
src/compiler/core.ts
@@ -623,23 +623,6 @@ namespace ts {
623
};
624
}
625
626
- /**
627
- * Computes the first matching span of elements and returns a tuple of the first span
628
- * and the remaining elements.
629
- */
630
- export function span<T>(array: ReadonlyArray<T>, f: (x: T, i: number) => boolean): [T[], T[]] {
631
- if (array) {
632
- for (let i = 0; i < array.length; i++) {
633
- if (!f(array[i], i)) {
634
- return [array.slice(0, i), array.slice(i)];
635
- }
636
637
- return [array.slice(0), []];
638
639
-
640
- return undefined;
641
642
643
/**
644
* Maps contiguous spans of values with the same key.
645
*
0 commit comments