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] );
- Host: GitHub
- URL: https://github.com/bell-kevin/findthecapitals
- Owner: bell-kevin
- License: gpl-3.0
- Created: 2022-06-28T16:35:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T22:47:40.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T16:49:19.338Z (over 1 year ago)
- Topics: codewars-kata-solution
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0