Skip to content
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

Project JavaScript Global Objects & Methods #22

Open
mhaidarhanif opened this issue Apr 10, 2019 · 10 comments
Open

Project JavaScript Global Objects & Methods #22

mhaidarhanif opened this issue Apr 10, 2019 · 10 comments

Comments

@mhaidarhanif
Copy link

mhaidarhanif commented Apr 10, 2019

  • Project JavaScript String Methods
  • Project JavaScript Number Methods
  • Project JavaScript Math Methods
  • Project JavaScript Array Methods
@dickymr
Copy link

dickymr commented Apr 11, 2019

https://github.com/dickymr/project-javascript-number-methods
https://github.com/dickymr/project-javascript-string-methods
https://github.com/dickymr/project-javascript-math-methods

@mhaidarhanif
Copy link
Author

Project Taman Safari

https://github.com/impactbyte-haku/project-taman-safari

@mhaidarhanif
Copy link
Author

Project People Data

https://github.com/impactbyte-haku/project-people-data

@rizariza69
Copy link

https://github.com/rizariza69/project-javascript-number-methods
https://github.com/rizariza69/project-javascript-math-methods
https://github.com/rizariza69/project-javascript-string-methods

@BintangSaputra
Copy link

BintangSaputra commented Apr 14, 2019

@codedarlyn
Copy link

https://github.com/codedarlyn/project-javascript-number-methods

@nchristanto
Copy link
Member

https://github.com/nchristanto/project-javascript-number-method
https://github.com/nchristanto/project-javascript-string-method

@mhaidarhanif
Copy link
Author

mhaidarhanif commented Apr 15, 2019

Transform to Title Case

const transformToTitleCase = text => {
  let textArray = text.split(' ')

  const titleCasedTextArray = textArray.map(text => {
    const titleCasedLetter = text.charAt(0).toUpperCase()
    return titleCasedLetter + text.slice(1)
  })

  return titleCasedTextArray.join(' ')
}
const transformToTitleCase = text =>
  text
    .split(' ')
    .map(text => text.charAt(0).toUpperCase() + text.slice(1))
    .join(' ')

console.log(transformToTitleCase('nurhadi aldo presiden'))

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

No branches or pull requests

9 participants