get-mid-character

"Get the middle character of a string with odd length, and get the two mid characters of a string with even length"

Usage no npm install needed!

<script type="module">
  import getMidCharacter from 'https://cdn.skypack.dev/get-mid-character';
</script>

README