tc39 / proposal-reversible-string-split

String.prototype.splitn for ECMAScript
MIT License
82 stars 4 forks source link

The name should be "splitN" as JS name convention #9

Closed hax closed 2 years ago

hax commented 2 years ago

Rust use name "splitn" (lowercase), because it use snake case (a_b_c) in method names, and seems it have one letter prefix/suffix rule, if abbr to one letter, underscore could be omit.

But as JS convention, it seems we should call it "splitN".

ljharb commented 2 years ago

https://github.com/tc39/proposal-reversible-string-split/issues/6#issuecomment-1021564898

lucacasonato commented 2 years ago

Makes sense. Renamed in 6607b436531ea4be532efeef211104cb77e38699.