Yxgm

Results 2 comments of Yxgm

``` Promise.retry = function (promiseFn, times = 3) { //success resolve, else try times let count = times; let promise = promiseFn; return new Promise((resolve, reject) => { _retry(resolve, reject);...

```js /** * * @param {string} str */ const Normalize = (str) => { const obj = Object.create(null); const arr = str.match(/\w+/g); //[ 'abc', 'bcd', 'def' ] let index =...