suffix-from

Get suffix from string - by splitter.

Usage no npm install needed!

<script type="module">
  import suffixFrom from 'https://cdn.skypack.dev/suffix-from';
</script>

README

suffixFrom

Get suffix from string - by splitter.

Usage: suffixFrom(subject: string, splitter: string | RegExp): string

import { suffixFrom } from 'suffix-from'

suffixFrom(`a/b/cd `, `/`)
// Output: 'cd'

This module exported from utilizes project.