An open API service indexing awesome lists of open source software.

https://github.com/bell-kevin/findthecapitals

Find the capitals. Instructions Write a function that takes a single string (word) as argument. The function must return an ordered list containing the indexes of all capital letters in the string. Example Test.assertSimilar( capitals('CodEWaRs'), [0,3,4,6] );
https://github.com/bell-kevin/findthecapitals

codewars-kata-solution

Last synced: over 1 year ago
JSON representation

Find the capitals. Instructions Write a function that takes a single string (word) as argument. The function must return an ordered list containing the indexes of all capital letters in the string. Example Test.assertSimilar( capitals('CodEWaRs'), [0,3,4,6] );

Awesome Lists containing this project