Ihor Morenets
Ihor Morenets
**39.1.2. Cloning and non-destructively modifying regular expressions** ... `new RegExp(regExp : RegExp, flags = regExp.flags) [ES6]` `regExp` is cloned. If `flags` **is** provided then it determines the flags of the...
Oh, ok, I misunderstood the meaning of the sentence, sorry.
> 25.2.6. Object literals: methods The following code shows how to create the method __.describe()__ via an object literal: ``` js const jane = { first: 'Jane', // data property...
> 22.3.2. The finally clause Let’s look at a common use case for finally: You have created a resource and want to always destroy it when ~your~ **you** are done...
> 12.4.3.2. Use case for ==: comparing with undefined or null ... I prefer either of the following two alternatives: `if (x === undefined || x === null) ···` **`if...
1. Typo in `37.1.4. States of promises` > - Once a Promise is settled, the settlement value (result or error) is cached. Thus, if .then() or .catch() are called after...