UNPKG

suffix-from

Version:

Get suffix from string - by splitter.

17 lines (10 loc) 372 B
# suffixFrom Get suffix from string - by splitter. **Usage:** `suffixFrom(subject: string, splitter: string | RegExp): string` ```typescript import { suffixFrom } from 'suffix-from' suffixFrom(`a/b/cd `, `/`) // Output: 'cd' ``` <!-- *keywords [] *keywordsend --> This module exported from [utilizes](https://www.npmjs.com/package/utilizes) project.