HE Shi-Jun

Results 543 comments of HE Shi-Jun

`[].lastIndex()` return `0` is surprising ... I would expect it `-1` which consistent with other methods. @getify I think `NaN` is not good , even we treat `NaN` not "not-a-number"...

I agree that `reject` will cause confusion with `Promise.reject`, especially for the programmers who have very bad English level, most of them remember the api names by rote learning. It...

Personally I feel `filterXXX` is better than other options because it's easy to recongnize the connection with `filter` method, and may also make `filter` a litter bit clear. `.discard` sounds...

Just find Kotlin have `filter/filterNot` methods.

It seems still no browser support this feature 😭

FYI. In Atom editor, this option is called `whitespace.ensureSingleTrailingNewline` and enabled by default.

@xuhdev @jedmao Is there any conclusion of this issue?

Some thought about `insert_final_newline = single` backwards compatible problem: We may introduce fallback mechanism: ```ini insert_final_newline = true # do not treat unrecognized value as `unset` but just ignore this...

Should report to the repo of vscode plugin https://github.com/editorconfig/editorconfig-vscode ?

Unfortunately, add new value to an exist property will never be backward-compatibility as my knowledge.