(text, search)
| 8 | * @param {string} search |
| 9 | */ |
| 10 | export function endsWith (text, search) { |
| 11 | const start = text.length - search.length |
| 12 | const end = text.length |
| 13 | return (text.substring(start, end) === search) |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Format a value of any type into a string. |
no outgoing calls
no test coverage detected
searching dependent graphs…