|
@@ -366,7 +366,7 @@ New characters:
|
|
|
|
|
|
### Calling method with more than one argument
|
|
|
|
|
|
-Calling method with more than one argument is non trivial - to do it you can use following [technique](https://stackoverflow.com/q/63601330/860099) (discovered by trincot) - for example example: `"truefalse".replace("true","1")` can be written as follows:
|
|
|
+Calling a method with more than one argument is non trivial - to do it you can use the following [technique](https://stackoverflow.com/q/63601330/860099) (discovered by trincot) - for example: `"truefalse".replace("true","1")` can be written as follows:
|
|
|
|
|
|
```js
|
|
|
["true"]["concat"]("1")["reduce"](""["replace"]["bind"]("truefalse"))
|
|
@@ -374,7 +374,7 @@ Calling method with more than one argument is non trivial - to do it you can use
|
|
|
|
|
|
### Calling method with more than one argument in "flow way"
|
|
|
|
|
|
-To be able to call mehod (with multiple arguments) in right side on results of previous method you can use this [technique](https://stackoverflow.com/q/63604058/860099) (discovered by trincot) - for example: `"truefalse".replace("true","1").replace("false","0")` can be written as follows:
|
|
|
+To be able to call a method (with multiple arguments) in right side on results of previous method you can use this [technique](https://stackoverflow.com/q/63604058/860099) (discovered by trincot) - for example: `"truefalse".replace("true","1").replace("false","0")` can be written as follows:
|
|
|
|
|
|
```js
|
|
|
"truefalse"
|
|
@@ -417,7 +417,7 @@ You can create regular expression e.g. `/pattern/g` as follows
|
|
|
[]["fill"]["constructor"]("return RegExp")()("pattern","g")
|
|
|
```
|
|
|
|
|
|
-wchich after remove comma (by using multi-arguments technique without `bind`ing) looks as follows
|
|
|
+which after removing the comma (by using [multi-arguments technique](#calling-method-with-more-than-one-argument) without `bind`ing) looks as follows
|
|
|
|
|
|
```js
|
|
|
["pattern"]["concat"]("g")["reduce"]([]["fill"]["constructor"]("return RegExp")())
|