2020-03-06 14:24:42 +00:00
|
|
|
# Query: @deprecated ES6
|
|
|
|
# Flags: CaseSensitive WordMatch
|
|
|
|
# ContextLines: 2
|
|
|
|
|
2020-07-10 09:58:02 +00:00
|
|
|
14 results - 4 files
|
2020-04-30 13:28:18 +00:00
|
|
|
|
|
|
|
src/vs/base/browser/dom.ts:
|
2020-09-09 07:33:46 +00:00
|
|
|
83 };
|
|
|
|
84
|
2020-04-30 13:28:18 +00:00
|
|
|
85: /** @deprecated ES6 - use classList*/
|
2020-09-09 07:33:46 +00:00
|
|
|
86 export const hasClass: (node: HTMLElement | SVGElement, className: string) => boolean = _classList.hasClass.bind(_classList);
|
2020-04-30 13:28:18 +00:00
|
|
|
87: /** @deprecated ES6 - use classList*/
|
2020-09-09 07:33:46 +00:00
|
|
|
88 export const addClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.addClass.bind(_classList);
|
2020-04-30 13:28:18 +00:00
|
|
|
89: /** @deprecated ES6 - use classList*/
|
2020-09-09 07:33:46 +00:00
|
|
|
90 export const addClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.addClasses.bind(_classList);
|
2020-04-30 13:28:18 +00:00
|
|
|
91: /** @deprecated ES6 - use classList*/
|
2020-09-09 07:33:46 +00:00
|
|
|
92 export const removeClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.removeClass.bind(_classList);
|
2020-04-30 13:28:18 +00:00
|
|
|
93: /** @deprecated ES6 - use classList*/
|
2020-09-09 07:33:46 +00:00
|
|
|
94 export const removeClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.removeClasses.bind(_classList);
|
|
|
|
95: /** @deprecated ES6 - use classList*/
|
|
|
|
96 export const toggleClass: (node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean) => void = _classList.toggleClass.bind(_classList);
|
|
|
|
97
|
2020-03-06 14:24:42 +00:00
|
|
|
|
|
|
|
src/vs/base/common/arrays.ts:
|
|
|
|
401
|
|
|
|
402 /**
|
|
|
|
403: * @deprecated ES6: use `Array.findIndex`
|
|
|
|
404 */
|
|
|
|
405 export function firstIndex<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean): number {
|
|
|
|
|
|
|
|
417
|
|
|
|
418 /**
|
|
|
|
419: * @deprecated ES6: use `Array.find`
|
|
|
|
420 */
|
|
|
|
421 export function first<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean, notFoundValue: T): T;
|
|
|
|
|
2020-08-10 09:54:50 +00:00
|
|
|
568
|
|
|
|
569 /**
|
|
|
|
570: * @deprecated ES6: use `Array.find`
|
|
|
|
571 */
|
|
|
|
572 export function find<T>(arr: ArrayLike<T>, predicate: (value: T, index: number, arr: ArrayLike<T>) => any): T | undefined {
|
2020-03-06 14:24:42 +00:00
|
|
|
|
2020-04-02 12:06:35 +00:00
|
|
|
src/vs/base/common/objects.ts:
|
|
|
|
115
|
|
|
|
116 /**
|
|
|
|
117: * @deprecated ES6
|
|
|
|
118 */
|
|
|
|
119 export function assign<T>(destination: T): T;
|
2020-03-06 14:24:42 +00:00
|
|
|
|
|
|
|
src/vs/base/common/strings.ts:
|
2020-04-02 12:06:35 +00:00
|
|
|
15
|
|
|
|
16 /**
|
|
|
|
17: * @deprecated ES6: use `String.padStart`
|
|
|
|
18 */
|
|
|
|
19 export function pad(n: number, l: number, char: string = '0'): string {
|
|
|
|
|
|
|
|
146
|
|
|
|
147 /**
|
|
|
|
148: * @deprecated ES6: use `String.startsWith`
|
|
|
|
149 */
|
|
|
|
150 export function startsWith(haystack: string, needle: string): boolean {
|
|
|
|
|
|
|
|
167
|
|
|
|
168 /**
|
|
|
|
169: * @deprecated ES6: use `String.endsWith`
|
|
|
|
170 */
|
|
|
|
171 export function endsWith(haystack: string, needle: string): boolean {
|
2020-04-22 08:19:58 +00:00
|
|
|
|
2020-09-09 07:33:46 +00:00
|
|
|
857
|
|
|
|
858 /**
|
|
|
|
859: * @deprecated ES6
|
|
|
|
860 */
|
|
|
|
861 export function repeat(s: string, count: number): string {
|