UNPKG

polished

Version:

A lightweight toolset for writing styles in Javascript.

10 lines (8 loc) 199 B
// @flow /** * Check if a string ends with something * @private */ export default function endsWith(string: string, suffix: string): boolean { return string.substr(-suffix.length) === suffix }