Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add camelize , decamelize flatten function to js.md #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gnipbao wants to merge 3 commits into jsfront:master
base: master
Choose a base branch
Loading
from gnipbao:master

Conversation

@gnipbao
Copy link

@gnipbao gnipbao commented Dec 16, 2017

add camelize , decamelize flatten function to js.md (ps:test pr):dog:

function decamelize(str, separator){
separator = typeof separator === 'undefined' ? '_' : separator;
return str
.replace(/([a-z\d])([A-Z])/g, '1ドル' + separator + '2ドル')
Copy link

@S1ngS1ng S1ngS1ng Dec 18, 2017
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢你的 pr。请把这里的缩进调整下吧。像上面一样,四个就好。文件其他位置也有缩进不对的。我有空了再调吧

* @param separator Separator for the new decamelized string.
*/
function decamelize(str, separator){
separator = typeof separator === 'undefined' ? '_' : separator;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也是

```js
function flatten(arr){
var i,ret=[], len = arr.length;
for(i=0;i<len;i++){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有这里。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@S1ngS1ng S1ngS1ng S1ngS1ng requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /