Skip to content

Commit ffab637

Browse files
authored
Merge pull request #26 from simon04/patch-1
Fix typos
2 parents cfdbdcb + 55e2c59 commit ffab637

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
12961296
**[⬆ Back to Top](#table-of-contents)**
12971297
12981298
3. ### Object entries
1299-
The `Object.entries()` method is introduced to returns an array of a given object's own enumerable string-keyed property [key, value] pairsin the same order as `for...in` loop.
1299+
The `Object.entries()` method is introduced to returns an array of a given object's own enumerable string-keyed property [key, value] pairs in the same order as `for...in` loop.
13001300
```js
13011301
const countries = {
13021302
IN: 'India',
@@ -1591,7 +1591,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
15911591
15921592
2. ### Object fromEntries
15931593
1594-
In JavaScript, it is very commonn to transforming data from one format. ES2017 introduced `Object.entries()` method to objects into arrays.
1594+
In JavaScript, it is very common to transforming data from one format. ES2017 introduced `Object.entries()` method to objects into arrays.
15951595
15961596
**Object to Array:**
15971597
@@ -1660,7 +1660,7 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
16601660

16611661
console.log(Symbol('').description); // ''
16621662

1663-
console.log(Symbol().description); // unefined
1663+
console.log(Symbol().description); // undefined
16641664

16651665
console.log(Symbol.iterator.description); // "Symbol.iterator"
16661666
```
@@ -2004,7 +2004,7 @@ Most of these features already supported by some browsers and try out with babel
20042004
```
20052005
The above URL can be either URL from which the script was obtained (for external scripts), or the document base URL of the containing document (for inline scripts).
20062006
2007-
**Note:** Remember `import` is not really an object but `import.meta` is provided as an object which is extensible, and its properties are writable, configurable, and enumerable.
2007+
**Note:** Remember `import` is not really an object but `import.meta` is provided as an object which is extensible, and its properties are writeable, configurable, and enumerable.
20082008
20092009
9. ### for..in order
20102010
@@ -2113,7 +2113,7 @@ Most of these features already supported by some browsers and try out with babel
21132113
21142114
**Note:** The finalization callback does not run immediately after garbage-collecting the event listener, so don't use it for important logic or metrics.
21152115
4. ### Numeric Separators
2116-
Numeric separators are helpful to read large numbers(or numeric literals) in JavaScript by providing separation between digits using underscores(_). In otherwords, numeric literals are more readable by creating a visual separation between groups of digits.
2116+
Numeric separators are helpful to read large numbers(or numeric literals) in JavaScript by providing separation between digits using underscores(_). In other words, numeric literals are more readable by creating a visual separation between groups of digits.
21172117
21182118
For example, one billion and one trillion becomes more readable with _ numeric separator,
21192119
@@ -2206,7 +2206,7 @@ Most of these features already supported by some browsers and try out with babel
22062206
22072207
1. ### Top-level await
22082208
2209-
In ES2022, it is possible to use `await` outside of the asynchronous (async) function scope, which makes it easier to use at the module level. This feaure delays the execution of current and parent modules until the imported module is loaded.
2209+
In ES2022, it is possible to use `await` outside of the asynchronous (async) function scope, which makes it easier to use at the module level. This feature delays the execution of current and parent modules until the imported module is loaded.
22102210
22112211
Let's take an example of `await` usage prior to ES2022,
22122212
@@ -2219,7 +2219,7 @@ Most of these features already supported by some browsers and try out with babel
22192219
}
22202220
```
22212221
2222-
The usage of `await` is straightword with ES2022 as below,
2222+
The usage of `await` is straightforward with ES2022 as below,
22232223
22242224
```javascript
22252225
let posts = await posts();
@@ -2472,7 +2472,7 @@ Most of these features already supported by some browsers and try out with babel
24722472
console.log(reverseNumbers.find(isOdd)); // 5
24732473
console.log(reverseNumbers.findIndex(isOdd)); // 4
24742474
```
2475-
This process is going to be simiplified in ES2023 release using **findLast()** and **findLastIndex()** methods.
2475+
This process is going to be simplified in ES2023 release using **findLast()** and **findLastIndex()** methods.
24762476
24772477
```javascript
24782478
const isOdd = (number) => number % 2 === 1;
@@ -2650,7 +2650,7 @@ Most of these features already supported by some browsers and try out with babel
26502650
Well-Formed Unicode Strings feature introduced below two string methods to check and convert into wellformed strings.
26512651
26522652
1. **String.prototype.isWellFormed:**
2653-
This method is used to check if the string contains lone surrogates or not. Returns `true`, if unicode string is not present. The following stings can be verified either as well-formed or not well-formed strigns,
2653+
This method is used to check if the string contains lone surrogates or not. Returns `true`, if unicode string is not present. The following stings can be verified either as well-formed or not well-formed strings,
26542654
26552655
```javascript
26562656
const str1 = "Hello World \uD815";

0 commit comments

Comments
 (0)