Questions tagged [ecmascript-2021]

ECMAScript 2021 (ES2021) is the 12th version of the ECMAScript language. It adds new features including Promise.any, String#replaceAll, weak references and finalizers. Only use this tag where the question specifically relates to new features or technical changes provided in ECMAScript 2021.

ECMAScript 2021 (ES2021) is the 12th version of the language.

The following proposals have been merged:

ECMAScript 2021 Specification

16 questions
0
votes
2 answers

best way to check element combination exist in array in typescript

I have array with some element that I want to check if some element combination exist in array that target element is following by any element of checkingSet, if yes, then return true otherwise, return false. For example, if inputArray is ['a', 'b',…
jacobcan118
  • 7,797
  • 12
  • 50
  • 95
1
2