Reformat JavaScript
This commit is contained in:
parent
b2154c3bd4
commit
e44bfa1c36
10
index.html
10
index.html
|
@ -61,13 +61,11 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/big-integer/1.6.44/BigInteger.min.js"
|
||||
integrity="sha256-es+ex6Oj344uak+VnCPyaHY2nzQkqhr7ByWVQgdjATA=" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
const stringReplaceAt = function (str, index, replacement) {
|
||||
return str.substr(0, index) + replacement + str.substr(index + replacement.length);
|
||||
};
|
||||
const stringReplaceAt =
|
||||
(str, index, replacement) => str.substr(0, index) + replacement + str.substr(index + replacement.length);
|
||||
|
||||
const stringReplaceAll = function (str, target, replacement) {
|
||||
return str.split(target).join(replacement);
|
||||
};
|
||||
const stringReplaceAll =
|
||||
(str, target, replacement) => str.split(target).join(replacement);
|
||||
|
||||
|
||||
class NumeralSystem {
|
||||
|
|
Loading…
Reference in New Issue